#5069: Console throws error when trying to create a controller with no model
-------------------------------------------------+--------------------------
Reporter: euromark | Owner:
Type: Bug | Status: reopened
Priority: Medium | Milestone: 1.2.x.x
Component: Console | Version: RC2
Severity: Normal | Resolution:
Keywords: console, shell, bake, controller | Php_version: n/a
Cake_version: |
-------------------------------------------------+--------------------------
Changes (by sky_l3ppard):
* status: closed => reopened
* resolution: invalid =>
Comment:
I have same error. But to be more accurate it happens only then i try to
bake a plugin controller. for example i have a model "ump_users", and i
try to bake controller interactively using shell command: cake bake plugin
ump controller. i get same error.
CakePHP version 1.2.3.8166.
file which throws error: /cake/console/libs/tasks/controller.php
code block at line: 248
cause of error: model name returned without plugin prefix. for example my
model name should be "Ump.UmpUser" but i get "UmpUser". Adding this prefix
solves the problem...
--
Ticket URL: <https://trac.cakephp.org/ticket/5069#comment:4>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC.
Our primary goal is to provide a structured framework that enables PHP users at
all levels to rapidly develop robust web applications, without any loss to
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"tickets cakephp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---