How CodeIgniter url work? [closed] - php

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am new to php so it did not seem like a good idea to use the framework.
I want to create my own framework from strach.
I want to open php class with a url like what codeigniter do.
I want to use urls like index.php / MyClass instead "get" index.php? class = MyClass.
how can I achieve that?

You have made good decision to develop your framework . This is known as Routing or URL Rewriting . You can learn this at URL Rewriting. For a complete framework , You have to learn about
Template System
Query Builder etc
I suggest you to learn Codeigniter framework for better understanding of PHP framework

Related

How to view php pages in my mvc application [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I'm new to php. I have made some php code and I would like to run it within my mvc application together with razor. How is it possible for me to do so? I basically want to implement my steamlogin php script into the autogenerated homepage on mvc.
This is a school project!
Thanks!
You can run PHP in the project (ASP.NET MVC) as html page (dynamic files) but you can't return a .php file from Controller.
How can I execute PHP code from ASP.NET MVC
As it's school project, it's look like you have write some functionality in PHP. You can send POST request to .php file handle the code in the .php file and show the response.

Diffrence between Simple Router like (CodeIgniter) and Restful Router (Slim Php) [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I am a novice PHP coder. Have basic knowledge in php [Self taught]. Presently learning CodeIgniter. But recently checked Slim Php Framework. It has Restful Router.
Can any one please tell, what is difference between CodeIgniter Router and Slim Router. And which one is better?
Thanks in advance.
Codeiginiter maps your class and method to the url. This a easy way to build your mvc project. But in my opinion isn't a good way to build apps if you need more powerful, if anyone wants change urls you have a serious problem.
Slim 3 has a way to map an url to your own class. For example:
$app->get('/myownurl', MyController::class);
You can change it easily.
You could review routes docs:
http://www.slimframework.com/docs/objects/router.html#how-to-create-routes

Yii2 advanced structure(need another application like frontend/backend) [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I've started recently working with yii2.Using the basic app is easy but what I need to do now is to create an advanced template which has more that frontend and backend.I need it to also have midend and one more compoenent(same as frontend/backend folders).I have been trying to search on the internet but I did not find anything usefull.
I would be grateful if any of you guys can help me out here.
Best regards,
Marius
Copy the backend folder to a new folder, search for "backend" in the project and replace / add a link to the new folder you have created.
There are not so many places, there is one in common/config/bootstrap.php and the rest I believe are in the new "backend" folder. Remember to change the namespaces of controllers / models etc.
I have made this recently, it is easier then you think.

What would be the best way to learn YII framework? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have used codeigniter for developing websites and now I am switching to Yii. Can someone please suggest me what would be the best way to learn YII framework?
This link would be enough to learn basic usage
http://www.yiiframework.com/wiki/268/how-to-learn-yii/
There's a documentation section on the official web. Start there + simply start writing in Yii.

Using Doctrine without a framework like symfony [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I've used Doctrine together with frameworks like Symfony or Zend. Is there a way to use it without such a framework, with plain, core php?
I've used Doctrine together with frameworks like simfony or zend. Is there a way to use it without such a framework, with plain php?
OF course. you start here , right from the doc :
http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/tutorials/getting-started.html
What i mean is you should really have a look at the doctrine doc if you did not.

Categories