avenirer / codeigniter-matches-cli Goto Github PK
View Code? Open in Web Editor NEWCodeigniter Matches is a PHP CLI script that allows you to write controllers, models and views faster.
Codeigniter Matches is a PHP CLI script that allows you to write controllers, models and views faster.
If you do this:
php index.php matches create:app foo
"foo_model" and "foo_view" are referenced in the generated Foo.php controller, but the file and class names created by the script are just "foo". So when you run the code you get a class conflict since you have two with the same name.
Create app, controller, views, or models, on CI-HMVC
As per docs, we should put below line under config.php after $config['uri_protocol'] = 'AUTO';
$config['uri_protocol'] = isset($_SERVER['REQUEST_URI']) ? 'PATH_INFO' : 'CLI';
However after generating model, view,controller with matches command "php index.php matches create app blog", i am not able to access generated method via web links like http://localhost/ci3new/blog
If i change config like below
$config['uri_protocol'] = isset($_SERVER['REQUEST_URI']) ? 'AUTO' : 'CLI';
It works perfectly fine.
Note:
I am on windows 8 64 bit, Apache and using below .htaccess under my new codeigniter project (Testing only).
RewriteEngine On
RewriteBase /ci3new/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
Hi,
I have downloaded fresh version of CI3-Dev and followed your provided installation steps and got below error while i ran "php index.php matches".
No web access allowed
I am on windows 8 64 bit.
Several message endings do not include a carriage return. This causes the message to line up with the command line prompt like so:
$ php index.php matches create:controller pages
Pages Controller already exists in the application/controllers directory. $
Fixing this should result in a cleaner representation of messages and the terminal prompt, like so:
$ php index.php matches create:controller pages
Pages Controller already exists in the application/controllers directory.
$
Add the provided $this->_ret
to the end of messages where this is missing.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.