# |
Jan 29th 2014, 20:37 |
todds |
nif: what ten11 said. you'll want to move those methods to the model. |
# |
Jan 29th 2014, 20:36 |
ten11 |
!tell nif about goodcake |
# |
Jan 29th 2014, 20:36 |
ten11 |
the side benefit of this is that you get to do $uses = array('Modelname'); in your shell and have access to it there |
# |
Jan 29th 2014, 20:35 |
ten11 |
almost all of it |
# |
Jan 29th 2014, 20:35 |
ten11 |
your functionality should be part of the model layer |
# |
Jan 29th 2014, 20:35 |
nif |
sorry, to clarify, this is the first time i am creating a shell like this. |
# |
Jan 29th 2014, 20:35 |
nif |
ok... but the method in the controller that the component calls is used in several places in my app... wouldn't that affect it? |
# |
Jan 29th 2014, 20:34 |
nif |
not that i know of? i have functionality in my app that i need to call at intervals. the idea is that i would create a shell and then run a cron on it. as far as i know this is the only way to get that done? |
# |
Jan 29th 2014, 20:33 |
todds |
nif: You'll want to move any code that needs to be referenced by both a component and the shell to your app lib. Components are intended for use by controllers. |
# |
Jan 29th 2014, 20:32 |
feens |
I would think hat semantically a shell probably shouldn't call a controller...doesn't that kind of defeat the purpose of using a shell? |
# |
Jan 29th 2014, 20:27 |
todds |
nif: http://book.cakephp.org/2.0/en/console-and-shells.html#creating-a-shell |
# |
Jan 29th 2014, 20:22 |
nif |
I need a little help with running my app from a shell file... can anyone help? |
# |
Jan 29th 2014, 20:22 |
nif |
Hi there, |
# |
Jan 29th 2014, 20:15 |
feens |
never mind, I see how to do it now |
# |
Jan 29th 2014, 20:11 |
feens |
(I have defaults set on the form object) |
# |
Jan 29th 2014, 20:11 |
feens |
with formhelper/input, is there a way to supply a label text, but not have it change what's set for the label class? |
# |
Jan 29th 2014, 19:00 |
pedrotv |
since im building the checkbox using a $this->find->list and a foreach on the array. |
# |
Jan 29th 2014, 18:59 |
pedrotv |
tigrang: thanks. I guess in my case i can show the info i want without the need to use a HABTM, but since its a multiple choice checkbox, i loose the ability to show to the user what were the "Exams" he already choose before. |
# |
Jan 29th 2014, 18:56 |
tigrang |
pedrotv: http://book.cakephp.org/2.0/en/models/saving-your-data.html#what-to-do-when-habtm-becomes-complicated |
# |
Jan 29th 2014, 18:55 |
pedrotv |
tigrang: Thanks i will check that out, since im pretty much lost for now ! :p |
# |
Jan 29th 2014, 18:54 |
tigrang |
pedrotv: in the book there's a section called When HABTM gets too complicated, you may want to look at that |
# |
Jan 29th 2014, 18:50 |
pedrotv |
How should i approach this ? |
# |
Jan 29th 2014, 18:49 |
pedrotv |
The setup: School | Season | Exam , 3 models. In a controller i need to show a choice for the user (School) where he should select the Exams the School will make in that Season. (from multiple seasons of choice) |
# |
Jan 29th 2014, 18:47 |
pedrotv |
having a difficult time, figuring out how should i make a 3 table HABTM, can any 1 give me a hand ? :) |
# |
Jan 29th 2014, 18:46 |
pedrotv |
Hi All, |
# |
Jan 29th 2014, 18:05 |
ten1 |
jruffer: I am probably not familiar enough with PCI requirements, but this is a good place to ask |
# |
Jan 29th 2014, 17:56 |
jruffer |
We usually use loadsys but they are booked solid for the next couple of months |
# |
Jan 29th 2014, 17:56 |
jruffer |
and it is not going to flag anything on PCI |
# |
Jan 29th 2014, 17:56 |
jruffer |
We are looking to have an indy developer to look at over our cakephp application before our PCI audit to make sure two things we are using Cakephp framework to its best abilities |
# |
Jan 29th 2014, 17:17 |
psk50 |
http://brett.batie.com/software-development/password-protect-all-but-one-file-htaccess/ |
# |
Jan 29th 2014, 17:16 |
psk50 |
google much? |
# |
Jan 29th 2014, 17:06 |
ravi_ |
please help |
# |
Jan 29th 2014, 17:04 |
ravi_ |
Hi I would like to exclude index.html which is a coming soon page from password protection using httpd, the html file is located in the root fiolder |
# |
Jan 29th 2014, 16:50 |
quadHelix |
Hello everyone. If i wanted to encode the XML string of <DataAction xsi:type="Cass" /> would the cake version be: 'DataAction' => array( @xsi:type => 'Cass') ? |
# |
Jan 29th 2014, 16:37 |
ten1 |
aro what is this one about? |
# |
Jan 29th 2014, 16:37 |
themojowill |
savant, tank you |
# |
Jan 29th 2014, 16:36 |
savant |
themojowill: https://github.com/josegonzalez/cakephp-entity/blob/master/Test/Case/AllEntityTest.php |
# |
Jan 29th 2014, 16:35 |
aro |
d |
# |
Jan 29th 2014, 16:35 |
aro |
yeah its not ba |
# |
Jan 29th 2014, 16:35 |
ten1 |
oh yeah? fun stuff? |
# |
Jan 29th 2014, 16:35 |
themojowill |
ok cake question how do I alter this so it is specific for my plugin? $suite->addTestDirectory( TESTS . 'Case/Model' ); |