I changed them to bools and they still work. You are right that that is the
convention - I hadn't really observed that the were strings here.
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 7 May 2011, at 06:50, Sam Sherlock wrote:
> cool no problem.
>
> I
Awesome!
I would like to thank you both! :)
Dwayne
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send
cool no problem.
I see you went back to strings for route prefixes - I thought these would
be better as bools
thats the code in the book at least - or am I missing something?
- S
On 7 May 2011 05:28, Jeremy Burns | Class Outfit <
jeremybu...@classoutfit.com> wrote:
> Thanks Sam - you enco
Thanks for your comment. I would like to eplain more my situation.
Assump that you have 2 users Officer and Approver. The Officer create
a report and send it to Approver to be accepted or denied.
The Approver receives an URL which meantioned within the email. He
click the link:
1/ He can login t
Thanks Sam - you encouraged me to go and play with the routes and here is what
I ended up with, and it works:
/* Paypal IPN plugin */
Router::connect('/paypal_ipn/process', array('plugin' => 'paypal_ipn',
'controller' => 'instant_payment_notifications', 'action' => 'process'));
/* Optional Route
Yes, I would add a 'school_id' field to each of the models. Then, as
above, you can filter to only the Rooms, Programs, and Classes that
belong to a particular School (which is your desired result).
On May 6, 11:25 am, rockbust wrote:
> Do you think I should associate each model with "School" and
And it appears $_POST data contains ALL checkboxes, checked or not.
The check ones return the value for that input and unchecked return 0
(false).
On May 5, 10:02 am, cougarman wrote:
> I have a large group of checkboxes. When the page loads, I need each
> checkbox with a "value" that is contain
Abhimanyu
Is it possible you aren't using the Form helper? If you aren't, you'll
probably have to do a little work yourself to show the errors. They
are available in the validationErrors property of your model. So if
you were in the user controller you could see the validation errors
returned from
Cougarman
It's pretty certain what you want can be done because none of the
problems you mention are insurmountable. However, it's not really
clear WHAT you want. You mention getting checkbox values onto the
page, pretty trivial; but you say you are defeated by the returned
$_POST data.
Can you c
Dee,
Yes. About halfway down this page
http://book.cakephp.org/view/1094/Media-Views#!/view/1323/Containable
conditions are discussed.
Essentially, you will add your conditions just like you would in any
other find()
Regards,
Don
On May 6, 11:41 am, Dee Johnson wrote:
> Is there a way to brin
Yes, URLs are encrypted over SSL (incidentally the reason you used to
be unable to host multiple domains under the same certificate - the
server couldn't make out which domain to serve). However, I would
consider sending private data in a URL a bad idea regardless of
whether it's encrypted or not;
On May 6, 2011, at 03:44, Chathu wrote:
> I'm developing some system with my friends.I think to use cake
> php..but one of my friend he use native php language to develop it...
> is there any intergration problem ? my component and his component ?
If you're developing a system with others, you s
Are you still perplexed?
I just got the admin to work
1a) add line that is uncommented
1b) first I changed this (removing the red)
2) I did not like the routes - true was a string and this does not find
index for me I always have an index catch before the other action catch all
(aplogies if my
Is there a way to bring back only the posts that satisfy 'containable'
conditions?
i.e if i ask contain for posts that have an author => tedinstead of just
giving me ALL posts and then giving me the related data only on the ones
that satisfy the condition, can I ONLY get back the posts that
Hi all, I am trying to return some posts based on criteria in a related
model. I came across containable in the docs...however it doesn't seem to
be working.
My understanding is that if I do a find->all using containable it will ONLY
bring back those which I specify for the contain parameter c
I have an URL under HTTPS.
https://domain.com/privatekey/550e8400-e29b-41d4-a716-44665544
Is the request path (privatekey/550e8400-e29b-41d4-a716-44665544)
encrypted like POST or GET params?
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out
Thanks, I think NTP is a good choice.
On May 6, 4:05 pm, Ryan Schmidt wrote:
> On May 6, 2011, at 03:59, datgs wrote:
>
> > I've worked with CakePHP magical created, modified and updated. And I
> > found that automation of getting current time based on php at
>
> > $time = strtotime('now');
>
> >
Am 06.05.2011 11:05, schrieb Ryan Schmidt:
> On May 6, 2011, at 03:59, datgs wrote:
>
>> I've worked with CakePHP magical created, modified and updated. And I
>> found that automation of getting current time based on php at
>>
>> $time = strtotime('now');
>>
>> I think it is not good for some case,
Cake doesn't change the way PHP works - it's still just PHP. It just
introduces an architecture on top of PHP for you to write your
applications. But anything that can be done in PHP can be done in
Cake, since they're the same thing.
On May 6, 1:44 am, Chathu wrote:
> Hi!,
> I'm developing some s
Not sure if you read the question fully or just didnt understand it but I
have already read ALL of that and frankly it is irrelevant. :)
My issue is not covered anywhere in the cake docs as i have seen. My
problem is similar to this guy and I am about to give this a whirl.
http://cakephp.10456
http://book.cakephp.org/view/1231/Pagination read this :)
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2011/5/6 Dee Johnson
> Hi guys, I would like to make a
>
> $this->MODEL->find call but would only like to bring back the items related
> to that query and paginate the results.
>
> I tried
Hi guys, I would like to make a
$this->MODEL->find call but would only like to bring back the items related
to that query and paginate the results.
I tried $this->paginate('Model', ('model.field' => 'value');
and then looped through the results but it looses the pagination on the
related data
shouldn't be. you would have to convert to the MVC style but cake uses
php...so yea...it's fine
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related quest
Do you think I should associate each model with "School" and insert the
"school_id"? Thereby making it easier to loop through any of these distant
associated models.
Example: right now I have associations as follows,
school>room>program>class> should I also set school has many class? then
whe
You are right! I think it might have been a permission problem, or a
naming problem (x.min.js vs. x.js). In any case, I got it sorted
out. Thanks.
On May 2, 3:49 pm, euromark wrote:
> well, thats wrong
> it will always use the file right away
>
> ONLY if it is missing it will attempt to infer
Hi cricket,
I apologize for the big delayi was stuck with another big problem
to be resolved.
I am able to access main_ani.swf throught browser but not using
cakephp. If I place main_ani.swf in a html file (not within cakephp),
main_ani.swf is displaying fine in the browser.
the flash file s
Rob, Thanks for the reply.
--
View this message in context:
http://cakephp.1045679.n5.nabble.com/how-would-YOU-do-this-admin-groups-tp4369031p4376251.html
Sent from the CakePHP mailing list archive at Nabble.com.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.o
Thanks for your replies.
I understand the differences between the 2 types of array.
I only asked why when I add another key and end up with array(4=>$a,
12=>$b), NOW the Set::extract is working as normal.
As for the combination of extract and combine, I believe there could
be situations where it'
^^
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 6 May 2011, at 16:01, Tilen Majerle wrote:
> i told you that you should look at folder structure :)
> --
> Lep pozdrav, Tilen Majerle
> http://majerle.eu
>
>
>
> 2011/5/6 heohni
> Ok, finally I got it!!
>
i told you that you should look at folder structure :)
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2011/5/6 heohni
> Ok, finally I got it!!
>
> It was just based on wrong understanding of the cake structure!
>
> /httpdocs/cake/app/ here are my project files
> /httpdocs/cake/ here are my co
Ok, finally I got it!!
It was just based on wrong understanding of the cake structure!
/httpdocs/cake/app/ here are my project files
/httpdocs/cake/ here are my core files
Now I got it yeah!!
Was a hard way...
I wish everybody a wonderful weekend!!
--
Our newest site for the community: CakePH
On 6 Mag, 08:19, Ryan Schmidt wrote:
> On May 5, 2011, at 15:16, Mariano C. wrote:
>
> > function beforeFilter()
> > {
> > parent::beforeFilter();
> > $this->Auth->allow(array('showTables'));
> > }
>
> > When i callhttp://./showTables/season_id:1for the first time I
> > will be r
http://book.cakephp.org/view/1528/Blog
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2011/5/6 Chathu
> hi!,
> How to develop Blog using Cake PHP ?
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask
I'm achieving a similar objective by adding an id field to each
model's table to relate to (in your example) schools. Then, in the
classes_controller.php actions, I'd include the line
$school_id = $this->Session->Read('Auth.User.school_id');
and then when building the query include (for example):
Hi all..
I have trouble in cakephp testcase, I create controller test case and
test one method below:
function testRegister() {
$result = $this->testAction("/users/register");
}
register method just blank method:
function register){
}
and there is one view name
Hi!,
I'm developing some system with my friends.I think to use cake
php..but one of my friend he use native php language to develop it...
is there any intergration problem ? my component and his component ?
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Che
Read the manual: http://book.cakephp.org/view/1528/Blog
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 6 May 2011, at 09:43, Chathu wrote:
> hi!,
> How to develop Blog using Cake PHP ?
>
> --
> Our newest site for the community: CakePHP Video Tutorials
>
hi!,
How to develop Blog using Cake PHP ?
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
ca
then here are some server problems...
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2011/5/6 heohni
> Forgot to say that I get also this:
>
> PCRE has not been compiled with Unicode support.
> Recompile PCRE with Unicode support by adding --enable-unicode-
> properties when configuring
>
> m
I have a large group of checkboxes. When the page loads, I need each
checkbox with a "value" that is contained in a certain array of
numbers to be checked. Is this possible? It seems that $_POST will
not work to put the values of all my checkboxes in an array, because
$_POST will only return val
http://cakephp.1045679.n5.nabble.com/Replication-load-balancing-support-td1259721.html#a1259722
On May 6, 3:18 pm, Shaz wrote:
> Just wanted to ask if anyone knows how best to do this - essentially I
> want to be able to send all the cakephp mysql selects (read) to a read-
> replica database and
Forgot to say that I get also this:
PCRE has not been compiled with Unicode support.
Recompile PCRE with Unicode support by adding --enable-unicode-
properties when configuring
my debug level is 2
If yi set it to 0, I only get
Not Found
Error: The requested address '/' was not found on this serv
look mate...you have to have folder structure like this:
/cake/ //cake basic files
/app/ //your working folder...inside this folder you have controllers,
configs, models, tests, views, libs, and so on...:D
/app/config/
/app/controllers/
/app/views/ ...and so on...
--
Lep pozdrav, Tilen Majerle
htt
I am totally lost, help...
In my app_controller.php I have
var $helpers = array('Common', 'Session', 'Form', 'Number',
'Javascript', 'Ajax', 'Text', 'DatePicker');
If I remove the 'common' it gets me the same error message but for the
'DatePicker'.
If I remove the 'DatePicker' I do NOT get the err
something is going wrong with you path, because look at your path:
httpdocs/views/helpers/common.php
there is missing 'app' folder so something like this it should be:
httpdocs/app/views/helpers/common.php
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2011/5/6 heohni
> httpdocs/views/helper
Hi,
I try to upload a local developed project to my webserver.
So far so fine, I have solved all problem regarding pathes, but now I
am getting the message that
Missing Helper File
Error: The helper file httpdocs/views/helpers/common.php can not be
found or does not exist.
The file is there and
Just wanted to ask if anyone knows how best to do this - essentially I
want to be able to send all the cakephp mysql selects (read) to a read-
replica database and all the inserts/deletes/updates (writes) to the
master database.
For a bit of background - I've been tasked to build a site that will
sry, wrong thread
but dreamingmind is right
On 6 Mai, 09:49, euromark wrote:
> http://lmgtfy.com/?q=tdd+cakephp
>
> On 6 Mai, 02:38, dreamingmind wrote:
>
>
>
>
>
>
>
> > Maybe javascript *could* help. If you sent the user to a simple
> > 'Please wait' page with a nice, animated smoking cigare
Hi
What is TDD?
TDD ( Test Driven Development ) is an agile practice on programming, where
the coder get focus on testing code all the time, usually automatic test
I know that cake is thinking on it when it has implemented a libreary like
simple test and now Unit Test, where the coder co
Hi guys,
I am new to cakephp i want to know how to do the validation in the
cakephp,
if i use the
$options = array(
'Mr' => 'Mr',
'Mrs' => 'Mrs',
'Ms' => 'Ms',
'Miss' => 'Miss'
);
echo $this->Form->input('title', array('type' => 'select', 'options'
=> $options, 'e
I solved the problem:)
I extended the class time..
fromString($dateString, $userOffset);
} else {
$date = time();
}
$format = $this->convertSpecifiers('%a, %e %b %Y, %H:%M',
$date);
return strftime($format, $date);
}
}
?>
in views/ elements
Nice->nice($
hi all,
in my cakephp project, i am adding a record having validations. If i
am clicking the submit button to add the record, the data is not saved
and there are no errors shown in that form. How can i find the error??
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakep
I forgot to specify page encoding in the layout. Now it's ok :)
Thank you all
On 6 Mag, 11:02, Ryan Schmidt wrote:
> It sounds like your database table is latin_swedish_ci, but you have stored
> UTF-8-encoded data in it. I concur with euromark's recommendation to change
> your database tables'
I've worked with CakePHP magical created, modified and updated. And I
found that automation of getting current time based on php at
$time = strtotime('now');
I think it is not good for some case, for example if my MySQL server
time is different from HTTP server time and someone want to mine data
On May 6, 2011, at 03:59, datgs wrote:
> I've worked with CakePHP magical created, modified and updated. And I
> found that automation of getting current time based on php at
>
> $time = strtotime('now');
>
> I think it is not good for some case, for example if my MySQL server
> time is differe
It sounds like your database table is latin_swedish_ci, but you have stored
UTF-8-encoded data in it. I concur with euromark's recommendation to change
your database tables' encoding to UTF-8, but you'll have to take special care
to convert the encoding of all your existing data properly without
Greetings,
> Does anyone do TDD in Cake? Do you have any recommendation or
> something helpful to start with this practice?
test-driven development with CakePHP is worth the effort. For starters,
have a look e.g. in the test suite included with CakePHP, which can be
found in the `cake/tests/` dire
http://lmgtfy.com/?q=tdd+cakephp
On 6 Mai, 02:38, dreamingmind wrote:
> Maybe javascript *could* help. If you sent the user to a simple
> 'Please wait' page with a nice, animated smoking cigarette... and that
> page sends an ajax request for the heavy lifting to proceed. When the
> process succee
http://lmgtfy.com/?q=tdd+cakephp
On 6 Mai, 08:25, Sam Sherlock wrote:
> perhaps test driven development?
>
> On 6 May 2011 07:13, Ryan Schmidt wrote:
>
>
>
>
>
>
>
> > On May 5, 2011, at 22:45, Santiago Basulto wrote:
>
> > > Does anyone do TDD in Cake?
>
> > What is TDD?
>
> > --
> > Our newest
If:
Survey hasMany SurveyUser
User hasMany SurveyUser
SurveyUser belongsTo Survey
SurveyUser belongsTo User
with ContainableBehavior (see: http://book.cakephp.org/view/1323/Containable),
you can try something like the following in your controller:
// Get list of all surveys, and any responses
PS:
Failed opening 'cake/bootstrap.php' for inclusion (include_path='/srv/
www/vhosts/my-domain/httpdocs/cake:/srv/www/vhosts/my-domain/
httpdocs/:.:.:/usr/share/php5:/usr/share/php5/PEAR')
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new Ca
Hi,
locally I run my app without any problem, now I try to get it online
but I am strggeling with error messages.
Warning: include(cake/bootstrap.php): failed to open stream:
define('CAKE_CORE_INCLUDE_PATH', DS. 'srv' . DS . 'www' . DS .
'vhosts' . DS . 'my-domain' . DS . 'httpdocs' . DS . 'cake
62 matches
Mail list logo