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
I once had the same problem with the Isunique validation rule when
editing my email field. I tried to create my own method which did
seem to work. But along the way I quickly realized I was not doing
things properly.
My problem was in the database, I was using an old database and some
records
Hello,,
I'd like to delete many record inside many tables.
I used $belongsTo in my Model. And in my Controller, I write this.
###
$this-Visit-deleteAll(array(
'Visit.id' = $id,
'History.visit_id' = $id,
I haven't used deleteAll, but according to the guide
(http://book.cakephp.org/view/1038/deleteAll) your conditions need to be in SQL
format, not Cake array format.
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 9 May 2011, at 10:52, thom wrote:
Hello,,
I have seen your video but I can't really read your code with the
resolution provided, so I have to guess. Could it be that you do not
hash the value of the password confirm field? Cake will do a salted
hash on the password field automatically, but not on the field for
password confirmation that
i think u r not giving the relation of associate model
take this example to reffer
$this-PatientClinicalDetail-PatientClinicalDetailChemotherapy-
deleteAll(array('PatientClinicalDetailChemotherapy.patient_clinical_detail_id'
= $this-data['PatientClinicalDetail']['id']));
here code indicates
Hello.
when the bool field is FALSE Cake reads that value as (empty
value).
this is causing some troubles in my newest app, where due to
customer's habits i'm using boolean selects (simple select boxes with
Yes ans No options) instead of checkboxes.
my select boxes' options are defined this
check this
http://book.cakephp.org/view/1402/options-default
http://book.cakephp.org/view/1402/options-defaultand this
http://book.cakephp.org/view/1405/options-empty
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2011/5/9 Ernesto e.fanz...@gmail.com
Hello.
when the bool field is FALSE
Yes, Cake 2.0 introduces a new ControllerTestCase class which provide
very convenient methods for generating controller Mocks and a very
much improved testAction() method to tes a complete dispatch cycle.
On May 8, 1:52 pm, DerekGardiner derek.gardi...@gmail.com wrote:
Are there going to be
Hi Tilen, thanks for your effort.
Sadly your solution doesn't work
i ended up modifying dbo_source's function boolean from
public function boolean($data, $quote = false) {
if ($quote) {
return !empty($data) ? '1' : '0';
}
return !empty($data);
}
to
@euromark
You're absolutely right. I should avoid doing anything cerebral after
midnight when I'm exhausted but unable to sleep--the synapses didn't
fire all the way. :-D
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions
Didn't work for me - but some kind folks but together a lovely
datasource driver that does exactly that - for any one looking for it,
try:
https://github.com/primeminister/cake-master-slave-setup
On May 6, 3:30 pm, majna majna...@gmail.com wrote:
Hello All!
I am designing an open source web application that has to access and
update a mysql database. It is a data intensive form based
application. During entry phase it will bring exisitng set of records
or defaults on the page and will save the same form data after user
updates/enters data
I read somewhere in cakephp 2.0 model - find will return the object
instead of array?
Did anyone create a wrapper class so that the find function return
the array of object for 1.2.8 or 1.3?
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new
in 2.0 cakephp find method in model return array...not object
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2011/5/9 cake-learner sh.koiz...@gmail.com
I read somewhere in cakephp 2.0 model - find will return the object
instead of array?
Did anyone create a wrapper class so that the find
Hey, that worked perfectly, thanks for the help :)
On May 8, 9:27 pm, dreamingmind dreamingmin...@gmail.com wrote:
Barricades,
I think your concern about the beforeSave/afterSave issues are red
herrings. Since the first line of your code is:
if ($this-Campaign-save($this-data)) { ...
both
Any insight into this strange outcome?
$type = 'hidden';
echo $form-input('ImageImgFileBatch', array(
'value' = 1,
'name' = 'data[Image][img_file][batch][]',
'id' = null,
'class' = 'batch',
'type' = $type
));
produces this html:
input type=hidden value=1
And changing to the use of the Form helper's input() method isn't a
clear fix:
echo $form-hidden('ImageImgFileBatch', array(
'value' = 1,
'name' = 'data[Image][img_file][batch][]',
'id' = null,
'class' = 'batch'
));
Still produces:
input type=hidden value=1
how to change defualt controller to my logins controller
-
Miqdad Ali K
+919995258790
http://www.miqdadalik.com
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions
On May 9, 2011, at 23:41, Miqdad Ali wrote:
how to change defualt controller to my logins controller
What are you talking about? What is a default controller? What are you trying
to do? Have you read any of the tutorials or documentation on how to do a login
page with CakePHP?
--
Our
default controller in a controller that is used when you access on a page
like just www.domain.com...so Router::connect method will look something
like that
Router::connect('/', array('controller' = 'yourcontrollername', 'action' =
'youraction'));
and login script and manual you have here
Routes, you can re-route to anything you want, check the book under
routes configuration
http://book.cakephp.org/view/945/Routes-Configuration
On May 9, 9:41 pm, Miqdad Ali mr.miqdad@gmail.com wrote:
how to change defualt controller to my logins controller
try with $this-Form-{$type}('name', array('attributes'));
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2011/5/10 dreamingmind dreamingmin...@gmail.com
And changing to the use of the Form helper's input() method isn't a
clear fix:
echo $form-hidden('ImageImgFileBatch', array(
thanx 4 ur answers but which controller or page I have to use Router::connect
method ??
-
Miqdad Ali K
+919995258790
http://www.miqdadalik.com
On Mon, May 9, 2011 at 10:33 PM, thatsgreat2345 thatsgreat2...@gmail.comwrote:
Routes,
24 matches
Mail list logo