View come from XML file

2014-05-28 Thread arvind yadav
Hi,

We have created an XML file and need to show view to using that XML file 
and XSLT file.

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: Cake is NOT able to connect to the database. Database connection "Mysql" is missing, or could not be created.

2013-09-04 Thread Arvind kumar
pls check user name ,database name and passoword correctly...

On Friday, 17 May 2013 00:28:37 UTC+5:30, Gabriel Saulescu wrote:
>
> I am trying to install cakephp on my laptop.
> I received this error.
> My SO is a WindowsVista in 32 b.
> I changed this:
> extension=php_mssql.dll.
>
> I need your help, please. What I have to do?
>
> Thank you in advance. Gabriel
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Having Issue when submitting form to plugin controller action

2010-07-12 Thread Arvind
Yeah i tried all things, in fact it is not a printing output problem
rather the control is not going into the index function at all, when i
submit the form. Fyi, in some cases browser gives a (404 page not
found) error and sometime it simply outputs the debug dump (all
queries run until the end of beforeFilter). It is simply not reaching
the index action in the case of form submit. It does not matter to
have a beforeFilter either.

On Jul 12, 2:10 pm, nini  wrote:
> Hey,
>
> did you tried to track $this->data variable value changes using
> xdebug?
> Btw. check your debug output level (Configure::read()) in that
> controller function, maybe it'll be set to null and pr() doesn't
> output right values.
> Old good var_dump() would help :)
>
> On Jul 11, 6:35 pm, Arvind  wrote:
>
> > Hi Guys,
>
> > I am a 3+ years old in cakephp and facing a somewhat strange issue
> > with submitting a form to plugin controller's action (i am using
> > plugin first time). After trying different known things i am posting
> > this one.
>
> > Going straight into the matter here is the form in my "forum" plugin's
> > -> search_controller.php's -> index view:
>
> > create("Search", array('url'=>array('controller' =>
> > 'search', 'action' => 'index','plugin'=>'forum'),
> > 'id'=>'searchFormMain')); ?>
> >                  > height="45" /> > style="width:
>
> > 357px; margin-left:9px;"> > type="image" src="/img/button_search.jpg" style="height:40px;width:
> > 136px;border:0;" class="handcursor">
> > 
>
> > As i am submitting this form to "index" action of search controller of
> > forum plugin, the following code does print nothing:
>
> >         public function index($type='') {
>
> >                 if(!empty($this->data))      {
> >                         pr($this->data);
> >                         die;
> >                 }
> >        }
>
> > While if i try the same code within beforeFilter of the same
> > controller i.e. search_controller.php it works well and prints as
> > follows:
>
> > Array
> > (
> >     [Search] => Array
> >         (
> >             [keyword] => Hello Forum
> >         )
>
> > )
>
> > And finally here is the beforeFilter code (of search_controller.php):
>
> >         public function beforeFilter() {
>
> >                 parent::beforeFilter();
> >                 if(!empty($this->data))      {
> >                         pr($this->data);
> >                 }
> >         }
>
> > Fyi, it does not matter if i comment out "parent::beforeFilter();" or
> > event disable $uses of my controller (if they look doubtful to you)
> > the result is same i.e. the control is not going in to "index" action
> > in the case of form submit while is working fine in the case of page
> > call. The url/action to page ishttp://localhost.rfdf.org/forum/search/index.
> > If i call the url directly is loads the form fine but when i submit it
> > never get into the "index" action of the controller thus no view
> > rendered.
>
> > I have been trying to find a way out of this for last 3+ hours now but
> > no success. I would appreciate any help in solving this puzzle.
>
> > Thanks,
>
> > Arvind.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Having Issue when submitting form to plugin controller action

2010-07-11 Thread Arvind
Hi Guys,

I am a 3+ years old in cakephp and facing a somewhat strange issue
with submitting a form to plugin controller's action (i am using
plugin first time). After trying different known things i am posting
this one.

Going straight into the matter here is the form in my "forum" plugin's
-> search_controller.php's -> index view:

create("Search", array('url'=>array('controller' =>
'search', 'action' => 'index','plugin'=>'forum'),
'id'=>'searchFormMain')); ?>



As i am submitting this form to "index" action of search controller of
forum plugin, the following code does print nothing:

public function index($type='') {

if(!empty($this->data)) {
pr($this->data);
die;
}
   }

While if i try the same code within beforeFilter of the same
controller i.e. search_controller.php it works well and prints as
follows:

Array
(
[Search] => Array
(
[keyword] => Hello Forum
)

)

And finally here is the beforeFilter code (of search_controller.php):

public function beforeFilter() {

parent::beforeFilter();
if(!empty($this->data)) {
pr($this->data);
}
}

Fyi, it does not matter if i comment out "parent::beforeFilter();" or
event disable $uses of my controller (if they look doubtful to you)
the result is same i.e. the control is not going in to "index" action
in the case of form submit while is working fine in the case of page
call. The url/action to page is http://localhost.rfdf.org/forum/search/index.
If i call the url directly is loads the form fine but when i submit it
never get into the "index" action of the controller thus no view
rendered.

I have been trying to find a way out of this for last 3+ hours now but
no success. I would appreciate any help in solving this puzzle.

Thanks,

Arvind.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Dying on blank white page

2009-08-23 Thread Arvind

Yes of course. But as i mentioned above no cache files were being
written to tmp cache directory.

On Aug 21, 3:00 pm, "rich...@home"  wrote:
> Also worth remembering to clear the app/tmp directories (just the
> files, leave the directory structures intact) when you upload
>
> On Aug 21, 9:22 am, Bert Van den Brande  wrote:
>
> > I've had blank pages when :
> > * .htaccess was not working as it should, due to restrictions from
> > Apache (it needed Allow Overwrite All)
> > * a table was missing from the db, and the error couldn't be displayed
> > by Cake because it got into a recursion when trying to output the
> > message html (this is very project specific since we added some magic
> > stuff to /app/config/routes.php)
>
> > Still it's weird that all of a sudden it started working ... I'm
> > thinking along the line of a browser page cache that just showed you
> > the white page again instead of reloading the requested url ?
>
> > On Thu, Aug 20, 2009 at 10:00 PM, Arvind wrote:
>
> > > It has started to work without doing anything moments ago. All i did,
> > > i decided to debug through dispatcher
> > > and before going into the dispatcher i decided to do some "dies"
> > > around
> > > to the dispatcher call in webroot/index.php file to make sure it goes
> > > into
> > > (which i had tested already; just wanted to double check it) it and
> > > after
> > > doing 2-3 "dies" around the code
>
> > >        if (!include(CORE_PATH . 'cake' . DS . 'bootstrap.php')) {
> > >                trigger_error("CakePHP core could not be found.  Check
> > > the value of
> > > CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php.  It should point to
> > > the directory containing your " . DS . "cake core directory and your
> > > " . DS . "vendors root directory.", E_USER_ERROR);
> > >        }
> > >        if (isset($_GET['url']) && $_GET['url'] === 'favicon.ico') {
> > >                return;
> > >        } else {
>
> > >                $Dispatcher = new Dispatcher();
> > >                $Dispatcher->dispatch($url);
> > >        }
> > >        if (Configure::read() > 0) {
> > >                echo "";
> > >        }
>
> > > and it started to work all at once. And tmp/cache files also started
> > > to
> > > get
> > > generated! VERY STRANGE INDEED!!
>
> > > I think there must be something which i am missing. Please let me
> > > know if someone has faced this kind of problem. Some apache
> > > server problem? Cake hash validation problem? or caching problem?
>
> > > Please put your thoughts before cakephp ( which i love the most in
> > > frameworks ) starts to become a mystery to me. (I wish it were not a
> > > cakephp problem though)
>
> > > On Aug 21, 12:21 am, Arvind  wrote:
> > >> Hi everyone,
>
> > >> I uploaded my local controller files, view files and one css file to
> > >> remote server 2 hrs ago and tried to access the site admin section but
> > >> it is dying on blank white page without any debug report or any error
> > >> displayed. The entire system is working fine on my local wamp server
> > >> and also worked well on the same remote server yesterday but is not
> > >> working right now. I have checked all files many a times and all files
> > >> mentioned above are parallel to my local files with one exception. On
> > >> the remote server there is no cache files being generated inside the
> > >> app/tmp/cache folder which i noticed today only but i am sure it
> > >> worked with same settings 1 day ago. I am trying to debug in webroot/
> > >> index.php file and it is reaching till the dispatcher alright. I also
> > >> tried by removing .htaccess but same problem with /webroot/index.php
> > >> file. Mod rewrite is WORKING just fine.
>
> > >> Not sure what is the problem. Anyone with thoughts on this is most
> > >> welcome as i have already started to pull my hair.
>
> > >> Here is the url where it is dying on blank page 
> > >> :http://d1041638.blacknight.com/admin/users/login
>
> > >> Thanks in advance,
>
> > >> Arvind.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Dying on blank white page

2009-08-23 Thread Arvind

Well..it may be browser cache but not sure though.

On Aug 21, 1:22 pm, Bert Van den Brande  wrote:
> I've had blank pages when :
> * .htaccess was not working as it should, due to restrictions from
> Apache (it needed Allow Overwrite All)
> * a table was missing from the db, and the error couldn't be displayed
> by Cake because it got into a recursion when trying to output the
> message html (this is very project specific since we added some magic
> stuff to /app/config/routes.php)
>
> Still it's weird that all of a sudden it started working ... I'm
> thinking along the line of a browser page cache that just showed you
> the white page again instead of reloading the requested url ?
>
> On Thu, Aug 20, 2009 at 10:00 PM, Arvind wrote:
>
> > It has started to work without doing anything moments ago. All i did,
> > i decided to debug through dispatcher
> > and before going into the dispatcher i decided to do some "dies"
> > around
> > to the dispatcher call in webroot/index.php file to make sure it goes
> > into
> > (which i had tested already; just wanted to double check it) it and
> > after
> > doing 2-3 "dies" around the code
>
> >        if (!include(CORE_PATH . 'cake' . DS . 'bootstrap.php')) {
> >                trigger_error("CakePHP core could not be found.  Check
> > the value of
> > CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php.  It should point to
> > the directory containing your " . DS . "cake core directory and your
> > " . DS . "vendors root directory.", E_USER_ERROR);
> >        }
> >        if (isset($_GET['url']) && $_GET['url'] === 'favicon.ico') {
> >                return;
> >        } else {
>
> >                $Dispatcher = new Dispatcher();
> >                $Dispatcher->dispatch($url);
> >        }
> >        if (Configure::read() > 0) {
> >                echo "";
> >        }
>
> > and it started to work all at once. And tmp/cache files also started
> > to
> > get
> > generated! VERY STRANGE INDEED!!
>
> > I think there must be something which i am missing. Please let me
> > know if someone has faced this kind of problem. Some apache
> > server problem? Cake hash validation problem? or caching problem?
>
> > Please put your thoughts before cakephp ( which i love the most in
> > frameworks ) starts to become a mystery to me. (I wish it were not a
> > cakephp problem though)
>
> > On Aug 21, 12:21 am, Arvind  wrote:
> >> Hi everyone,
>
> >> I uploaded my local controller files, view files and one css file to
> >> remote server 2 hrs ago and tried to access the site admin section but
> >> it is dying on blank white page without any debug report or any error
> >> displayed. The entire system is working fine on my local wamp server
> >> and also worked well on the same remote server yesterday but is not
> >> working right now. I have checked all files many a times and all files
> >> mentioned above are parallel to my local files with one exception. On
> >> the remote server there is no cache files being generated inside the
> >> app/tmp/cache folder which i noticed today only but i am sure it
> >> worked with same settings 1 day ago. I am trying to debug in webroot/
> >> index.php file and it is reaching till the dispatcher alright. I also
> >> tried by removing .htaccess but same problem with /webroot/index.php
> >> file. Mod rewrite is WORKING just fine.
>
> >> Not sure what is the problem. Anyone with thoughts on this is most
> >> welcome as i have already started to pull my hair.
>
> >> Here is the url where it is dying on blank page 
> >> :http://d1041638.blacknight.com/admin/users/login
>
> >> Thanks in advance,
>
> >> Arvind.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Dying on blank white page

2009-08-20 Thread Arvind

It has started to work without doing anything moments ago. All i did,
i decided to debug through dispatcher
and before going into the dispatcher i decided to do some "dies"
around
to the dispatcher call in webroot/index.php file to make sure it goes
into
(which i had tested already; just wanted to double check it) it and
after
doing 2-3 "dies" around the code


if (!include(CORE_PATH . 'cake' . DS . 'bootstrap.php')) {
trigger_error("CakePHP core could not be found.  Check
the value of
CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php.  It should point to
the directory containing your " . DS . "cake core directory and your
" . DS . "vendors root directory.", E_USER_ERROR);
}
if (isset($_GET['url']) && $_GET['url'] === 'favicon.ico') {
return;
} else {

$Dispatcher = new Dispatcher();
$Dispatcher->dispatch($url);
}
if (Configure::read() > 0) {
echo "";
}


is started to work all at once. And tmp/cache files also started to
get
generated! VERY STRANGE INDEED!!

I think there must be something which i am missing. Please let me
know if someone has faced this kind of problem. Some apache
server problem? Cake hash validation problem? or caching problem?

Please put your thoughts before cakephp ( which i love the most in
frameworks ) starts to become a mystery to me. (I wish it were not a
cakephp problem though)

On Aug 21, 12:21 am, Arvind  wrote:
> Hi everyone,
>
> I uploaded my local controller files, view files and one css file to
> remote server 2 hrs ago and tried to access the site admin section but
> it is dying on blank white page without any debug report or any error
> displayed. The entire system is working fine on my local wamp server
> and also worked well on the same remote server yesterday but is not
> working right now. I have checked all files many a times and all files
> mentioned above are parallel to my local files with one exception. On
> the remote server there is no cache files being generated inside the
> app/tmp/cache folder which i noticed today only but i am sure it
> worked with same settings 1 day ago. I am trying to debug in webroot/
> index.php file and it is reaching till the dispatcher alright. I also
> tried by removing .htaccess but same problem with /webroot/index.php
> file. Mod rewrite is WORKING just fine.
>
> Not sure what is the problem. Anyone with thoughts on this is most
> welcome as i have already started to pull my hair.
>
> Here is the url where it is dying on blank page 
> :http://d1041638.blacknight.com/admin/users/login
>
> Thanks in advance,
>
> Arvind.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Dying on blank white page

2009-08-20 Thread Arvind

It has started to work without doing anything moments ago. All i did,
i decided to debug through dispatcher
and before going into the dispatcher i decided to do some "dies"
around
to the dispatcher call in webroot/index.php file to make sure it goes
into
(which i had tested already; just wanted to double check it) it and
after
doing 2-3 "dies" around the code

if (!include(CORE_PATH . 'cake' . DS . 'bootstrap.php')) {
trigger_error("CakePHP core could not be found.  Check
the value of
CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php.  It should point to
the directory containing your " . DS . "cake core directory and your
" . DS . "vendors root directory.", E_USER_ERROR);
}
if (isset($_GET['url']) && $_GET['url'] === 'favicon.ico') {
return;
} else {

$Dispatcher = new Dispatcher();
$Dispatcher->dispatch($url);
}
if (Configure::read() > 0) {
echo "";
}

and it started to work all at once. And tmp/cache files also started
to
get
generated! VERY STRANGE INDEED!!

I think there must be something which i am missing. Please let me
know if someone has faced this kind of problem. Some apache
server problem? Cake hash validation problem? or caching problem?

Please put your thoughts before cakephp ( which i love the most in
frameworks ) starts to become a mystery to me. (I wish it were not a
cakephp problem though)

On Aug 21, 12:21 am, Arvind  wrote:
> Hi everyone,
>
> I uploaded my local controller files, view files and one css file to
> remote server 2 hrs ago and tried to access the site admin section but
> it is dying on blank white page without any debug report or any error
> displayed. The entire system is working fine on my local wamp server
> and also worked well on the same remote server yesterday but is not
> working right now. I have checked all files many a times and all files
> mentioned above are parallel to my local files with one exception. On
> the remote server there is no cache files being generated inside the
> app/tmp/cache folder which i noticed today only but i am sure it
> worked with same settings 1 day ago. I am trying to debug in webroot/
> index.php file and it is reaching till the dispatcher alright. I also
> tried by removing .htaccess but same problem with /webroot/index.php
> file. Mod rewrite is WORKING just fine.
>
> Not sure what is the problem. Anyone with thoughts on this is most
> welcome as i have already started to pull my hair.
>
> Here is the url where it is dying on blank page 
> :http://d1041638.blacknight.com/admin/users/login
>
> Thanks in advance,
>
> Arvind.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Dying on blank white page

2009-08-20 Thread Arvind

It is started to work now without doing anything. This looks very
strange to me. All what i did, i decided to debug through dispatcher
and before going into the dispatcher i decided to do some dies around
to the dispatcher call in index.php file to make sure it goes into
(which i had tested already; just wanted to double check it) and after
doing 2-3 dies around the code [[
if (!include(CORE_PATH . 'cake' . DS . 'bootstrap.php')) {
trigger_error("CakePHP core could not be found.  Check the 
value of
CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php.  It should point to
the directory containing your " . DS . "cake core directory and your
" . DS . "vendors root directory.", E_USER_ERROR);
}
if (isset($_GET['url']) && $_GET['url'] === 'favicon.ico') {
return;
} else {

$Dispatcher = new Dispatcher();
$Dispatcher->dispatch($url);
}
if (Configure::read() > 0) {
echo "";
}
]]

is started to work at once. And tmp/cache files also started to get
generated! VERY STRANGE INDEED!!

I think there must be something which i am unaware of. Please let me
know if someone else has faced this kind of problem. Some apache
server problem? Cake hash validation problem? or caching problem?

Please put your thoughts before cakephp ( which i love the most in
frameworks ) starts to become a mystery to me. (I wish it were not a
cakephp problem though)

On Aug 21, 12:21 am, Arvind  wrote:
> Hi everyone,
>
> I uploaded my local controller files, view files and one css file to
> remote server 2 hrs ago and tried to access the site admin section but
> it is dying on blank white page without any debug report or any error
> displayed. The entire system is working fine on my local wamp server
> and also worked well on the same remote server yesterday but is not
> working right now. I have checked all files many a times and all files
> mentioned above are parallel to my local files with one exception. On
> the remote server there is no cache files being generated inside the
> app/tmp/cache folder which i noticed today only but i am sure it
> worked with same settings 1 day ago. I am trying to debug in webroot/
> index.php file and it is reaching till the dispatcher alright. I also
> tried by removing .htaccess but same problem with /webroot/index.php
> file. Mod rewrite is WORKING just fine.
>
> Not sure what is the problem. Anyone with thoughts on this is most
> welcome as i have already started to pull my hair.
>
> Here is the url where it is dying on blank page 
> :http://d1041638.blacknight.com/admin/users/login
>
> Thanks in advance,
>
> Arvind.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Dying on blank white page

2009-08-20 Thread Arvind

Hi everyone,

I uploaded my local controller files, view files and one css file to
remote server 2 hrs ago and tried to access the site admin section but
it is dying on blank white page without any debug report or any error
displayed. The entire system is working fine on my local wamp server
and also worked well on the same remote server yesterday but is not
working right now. I have checked all files many a times and all files
mentioned above are parallel to my local files with one exception. On
the remote server there is no cache files being generated inside the
app/tmp/cache folder which i noticed today only but i am sure it
worked with same settings 1 day ago. I am trying to debug in webroot/
index.php file and it is reaching till the dispatcher alright. I also
tried by removing .htaccess but same problem with /webroot/index.php
file. Mod rewrite is WORKING just fine.


Not sure what is the problem. Anyone with thoughts on this is most
welcome as i have already started to pull my hair.

Here is the url where it is dying on blank page :
http://d1041638.blacknight.com/admin/users/login

Thanks in advance,

Arvind.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Poll: what do you hate about CakePHP?

2009-05-12 Thread Arvind

@Smelly Eddie checked further postings! LOL

I love cakephp. In fact i have been building major projects in cake
php for last 2 years now. And mind you it has never let me down.

I had (or may have) complaints (and already covered in this post) but
every time i was able to find a quick solution for that. So its OK.

None+. :)

On May 8, 6:08 pm, Smelly Eddie  wrote:
> I hate that it is a powerful framework that can make the tedious work
> of developing sites a breeze.  Its strict adherence to the tried and
> true MVC model is a pain point as well.  Why so logical?
>
> I hate the active community involvement and powerful documentation and
> API sites.  I hate that people expect Cake to do every little thing.
>
> It is a framework! Not a solve everything-all-in-one-cms-portal-file-
> manager-blog-forum.
>
> Use the framework to create an upload component, it takes all of 5
> minutes!!
>
> On May 8, 8:56 am, "Dennis S. Hennen"  wrote:
>
> > Consider Post hasMany Comment
>
> >      Comment->find('all') returns {n}.Comment.*
>
> >      Post->find('all') gives you Comment.{n}.*
>
> > If I want a helper to do processing on a list of comments, I have to
> > handle both potential formats, or massage the data.
>
> > Related to this is the $primary parameter to the afterFind callback.
>
> > Perhaps find results as objects instead of arrays?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Help for ajax update form field

2009-04-14 Thread Arvind

Use $ajax->observeField method of ajax helper. Here is an example:


  observeField("AlbumNametext",array
('url'=>'checkAlbumName','update'=>'albumNameMsg','loading'=>"Element.show
('loaderIDCheck')",'loaded'=>"Element.hide
('loaderIDCheck')",'before'=>
"if($('AlbumNametext').value == ''){
$('albumNameMsg').innerHTML='Please enter album name';
$('albumNameMsg').style.color='red';
return false;
 }
 else {
  $('albumNameMsg').innerHTML='';
 }"));
  ?>

On Apr 14, 6:19 pm, "Dr.Dran"  wrote:
> Hi!
>
> I'm a newbe, I try to make my new application with cake, there is a
> simple shopping cart.
>
> I have in particular two field that one is the quantoty and one is the
> price.
>
> My problem is that I want when i fill the quantity field the price
> field change his value that was a simple product of the price for the
> quantity...
>
> I found in ajax inhttp://ajaxtags.sourceforge.netth function Update
> Field that seems do what I need: "Updates one or more form field
> values based on response to text entered in another field"
>
> There is the same thing in cake ajaxhelper? There is some examples?
>
> Best regards
>
> Franco Tampieri
>
> P.S. Excuse me for my bad english :P
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: What do you develop in (ide, text editor, etc.)?

2009-04-14 Thread Arvind

EditPlus. Dreamweaver (rarely, for designing purpose only).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Model config for table with no ID

2009-04-14 Thread Arvind

Well i think you should have no problem using $this->model->find()
method even if you don't have a PK field as per cakephp 1.2.x (not
sure about previous versions). If still don't work try $this->model-
>primaryKey="fieldname" to make virtual primary key and see what
happen.

On Apr 10, 7:45 am, mattalexx  wrote:
> Hi
>
> I am trying to access a database table that was built without a
> primary key (I know). How would I go about this in CakePHP. Is it
> possible or do I have to just use Model::query all the time?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Date validation from Model

2009-03-22 Thread Arvind

I am not sure why you created save() function in the model? You could
set  $this->Model->set($this->data) in the controller itself  before
calling the save method.

On Mar 12, 9:05 pm, starkey  wrote:
> I found my problem... I changed the way I assigned the local $data to
> the model's $data:
> // in my model
> Old: $this->data = $data;
> New: $this->set($data);
>
> And now it works great!  Thanks a lot Cake for an excellent framework!
> S
>
> On Mar 12, 11:26 am, starkey  wrote:
>
> > I forgot to mention that I also tried other validation rule formats,
> > e.g.  'rule' => array('date','mdy'), without any luck.  The
> > Validation::date method gets passed an array when calling validateData
> > from my model while Model::save() sends it a string.
>
> > Thanks again!
>
> > On Mar 12, 11:16 am, starkey  wrote:
>
> > > Hello all!
>
> > > I'm using 1.2.1
>
> > > I used to just have Cake validate my data in the save() method.  Now I
> > > need to validate the data before the save, so I call 
> > > $this->validateData() inside my model before the save().  My dates used to
>
> > > validate fine when calling save(), now they all fail when I call
> > > validateData.  It seems that save() changed the date array into a
> > > string before passing it to the date validation function.  It seems
> > > I'll have to change the date array into a string before calling
> > > validateData then change it back to an array for save.  I figure I'm
> > > missing something b/c Cake is usually much more programmer friendly!
>
> > > I have a date field that is created like this in my view:
> > >       echo $form->input('Punch.workdate',
> > >           array('maxYear'=>$yr,
> > >                 'minYear'=>--$yr,
> > >                 'div'=>false,
> > >                 'label'=>false,
> > >                 'dateFormat'=>'mDY'));
>
> > > In my model I have this validation:
> > >       'workdate' => array(
> > >         'rule' => array('date','ymd'),
> > >         'message' => 'Date is not valid.',
> > >         'allowEmpty' => false
> > >       ),
>
> > > Then in my model I've customized the save() method:
> > >     function save($data)
> > >     {
> > >        $bRet = false;
> > >        // some logic against $data
> > >        $this->data = $data;
> > >        if ($this->invalidFields()) {
> > >           return parent::save();
> > >        }
> > >        return false;
> > >     }
>
> > > Unfortunately, the data is never saved because the date fails (even
> > > though it is valid).  The date array will look like this:
> > > data[Punch][workdate][month] = '03'
> > > data[Punch][workdate][day] = '12'
> > > data[Punch][workdate][year] = '2009'
>
> > > Any help would be greatly appreciated!
> > > S

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---