# |
Oct 22nd 2009, 10:24 |
t0nic |
thanks, I'll try |
# |
Oct 22nd 2009, 10:24 |
t0nic |
hmm... I turned them off!! |
# |
Oct 22nd 2009, 10:24 |
BlackIce |
t0nic: with or without debug settings? |
# |
Oct 22nd 2009, 10:23 |
Horror |
hey fellas - in the default edit.ctp generated by bake console. how do I modify the default query so takes table.subId as the primary key instead of table.id? |
# |
Oct 22nd 2009, 10:21 |
t0nic |
I guess I'll just have to tell myself about patience |
# |
Oct 22nd 2009, 10:21 |
t0nic |
not even you can help me :( |
# |
Oct 22nd 2009, 10:20 |
t0nic |
ok cakebot |
# |
Oct 22nd 2009, 10:20 |
t0nic |
~tell t0nic about patience |
# |
Oct 22nd 2009, 10:18 |
t0nic |
I added a couple fields to the users table but username and password are unchanged |
# |
Oct 22nd 2009, 10:17 |
t0nic |
anything else one would recommend checking? |
# |
Oct 22nd 2009, 10:15 |
t0nic |
my login stopped working.... I'm in auth setup, looking at where I'm getting the err. and $this->login isn't working (i'm getting loginError) but the hashed password and the username are set correctly (echoed them) so I can't figure out what's failing |
# |
Oct 22nd 2009, 10:07 |
ionas |
I think its a good idea, esp. if you have tons of views, find and replace is nothing to rely on if it can be done with little effort/speed inside the framework - but well - would you oppose if someone external wrote a patch for this? |
# |
Oct 22nd 2009, 10:06 |
ionas |
see I do not even completely understand that (which aliases anyway, cake does use the singelton name as the variable name by convention, doesn't it?) |
# |
Oct 22nd 2009, 10:05 |
markstory |
override constructClasses() and move the aliases around. |
# |
Oct 22nd 2009, 10:05 |
ionas |
$this->ModelAlias/Component-Clashing |
# |
Oct 22nd 2009, 10:04 |
jcrawford |
nice blank white page :( http://book.cakephp.org/search/tagErrorMsg |
# |
Oct 22nd 2009, 10:04 |
markstory |
they do. |
# |
Oct 22nd 2009, 10:04 |
ionas |
think its better to give the user control over the namespace |
# |
Oct 22nd 2009, 10:04 |
ionas |
it has yes |
# |
Oct 22nd 2009, 10:04 |
markstory |
s/$this->Auth/$this->AppAuth/ |
# |
Oct 22nd 2009, 10:04 |
markstory |
does your edtior not have search + replace? |
# |
Oct 22nd 2009, 10:03 |
ionas |
that does not make sense, yes |
# |
Oct 22nd 2009, 10:03 |
markstory |
'Email' => array('as' => 'Auth'); |
# |
Oct 22nd 2009, 10:03 |
ionas |
Indirect? |
# |
Oct 22nd 2009, 10:03 |
markstory |
It makes things more indirect. |
# |
Oct 22nd 2009, 10:02 |
ionas |
markstory, besides that, do you see the benefit of being able to extend core components and helpers really easy by adding those aliases? When you have a product that is already finished and need some addition to some core helper or component, you just extend it and change a view lines in your controller (the alias) and thats it |
# |
Oct 22nd 2009, 10:00 |
ionas |
and would probably even accepd $f->input() ;) |
# |
Oct 22nd 2009, 10:00 |
ionas |
I can see that tiny views that have some constrains / conventions are okay yeah |
# |
Oct 22nd 2009, 10:00 |
markstory |
Perhaps I'm more creative with variable names though. |
# |
Oct 22nd 2009, 10:00 |
markstory |
I don't like $this->Form personally |
# |
Oct 22nd 2009, 09:58 |
ionas |
markstory, well then array('MyAuth' => array('as' => 'Auth')) |
# |
Oct 22nd 2009, 09:58 |
ionas |
markstory, why not? components and models share the same namespace on controllers (Breadcrume Model vs Breadcrume Controller), you can extend core components and core helpers easily then? |
# |
Oct 22nd 2009, 09:57 |
markstory |
because you just broke the settings arrays for both. |
# |
Oct 22nd 2009, 09:57 |
markstory |
ionas: no |
# |
Oct 22nd 2009, 09:57 |
ionas |
markstory, would you think it is a good idea to have aliases for Components and Helpers (like $components = array('MyAuth' => 'Auth); $helpers = array('MyForm' => 'Form); ? |
# |
Oct 22nd 2009, 09:56 |
markstory |
I think only the Component class is built in __construct |
# |
Oct 22nd 2009, 09:55 |
Iiridayn_ |
markstory: Thanks. I had thought that that was called from Controller::__construct. That sets my mind more at ease. |
# |
Oct 22nd 2009, 09:55 |
ionas |
make things really equal until it works and then add back your company specific model methods/variables |
# |
Oct 22nd 2009, 09:55 |
ionas |
dogmatic69, I'd suggest backing up your company model, cloning your industry model as your company model |
# |
Oct 22nd 2009, 09:55 |
dogmatic69 |
thx anyway |
# |
Oct 22nd 2009, 09:54 |
ionas |
dogmatic69, okay, no idea why it works then |