Transition from shebang to pushState

2015-05-24 Thread Chris Cinelli
I am using Angular.js and so far I used routes like www.oursite.com*/#!* /angularControllerRoute/angularAction/otherparameters Where angularControllerRoute and angularAction are my way to indicate a generic route that I have on the frontend using the Angular UI Router. I want to transition to use

Re: CakePHP 3: 2 Qs - Response From Filter & Helper Constructor

2015-01-13 Thread Chris White
Oh, and that was a simple anonymization error on my part in the post. The response data is fine. -- 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.

Re: CakePHP 3: 2 Qs - Response From Filter & Helper Constructor

2015-01-13 Thread Chris White
José, Thank you! Simple enough; I should have tried that. Still not sure about the filter response issue for anyone else reading. Chris -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are

CakePHP 3: 2 Qs - Response From Filter & Helper Constructor

2015-01-13 Thread Chris White
__construct(\MyNS\View $view, $config=[]) { The warning I am receiving is: Argument 1 passed to MyNS\View\Helper\MyHelper::__construct() must be an instance of MyNS\View, instance of MyNS\View\AppView given Thanks for any help you may be able to provide to either question! Chris -- Like U

Re: How to associate 3 models (or structure a search) to achieve the following structure (Cake 2.x)

2014-12-22 Thread Chris
Thus we need also to know which of the contact people > are located in the specific location/office. > > When you try and describe the relation between customer and contacts and > other objects that may be of interest, then it will be easier for us to > help you :) > > Enjoy, J

How to associate 3 models (or structure a search) to achieve the following structure (Cake 2.x)

2014-12-21 Thread Chris
Hi all! I'm quite new to Cake and this is my first project. I'm working on a customer database. For larger business customers the relationships get a little complicated. I have 3 models, Customer, CustomerAddress and CustomerContact. A customer can have many addresses, and many contacts, but

Re: Cakephp 3 Changing Database Connections on the fly? Is it efficient?

2014-09-09 Thread Chris Hickingbottom
t recommend using table prefixes as that solution is quite > limiting and very complex to implement. > > On Tuesday, September 9, 2014 12:10:31 AM UTC+2, Chris Hickingbottom wrote: >> >> Is there a way to change Database Connections on the fly? Is it >> efficient?

Cakephp 3 Changing Database Connections on the fly? Is it efficient?

2014-09-09 Thread Chris Hickingbottom
Is there a way to change Database Connections on the fly? Is it efficient? We have clients with multiple databases. They each contain the same structures, but we keep them separate to use the same classes in our application and security purposes. Is there a better way to do this than switchin

cross tables in cake 1.3

2014-06-30 Thread 'Chris' via CakePHP
hi guys,.. I'm using to many cross tables in a controller,... and getting memory error not enough bites,... var $uses = array('User', 'Friend', 'FriendRequest', 'UserInvisiblePoint', 'UserStatusPost', 'StatusLike', 'StatusNotification', 'ZodiacType', 'Point', 'ProfileComment', 'Gift', 'Guest

Fatal error: Out of memory (allocated 10485760)

2014-05-23 Thread 'Chris' via CakePHP
hi guys,... why am I getting this error from time to time,...? *Fatal error*: Out of memory (allocated 10485760) (tried to allocate 19456 bytes) in thanks Chris -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this

Inserting named parameter for custom pagination route

2013-09-12 Thread Chris White
I'm using the pagination component and would like to use a custom route for a prettier URL. At the moment I have a page at /things, and I would like the individual pages to be /things/2, /things/3 etc. I'm using the following code in my thing controller's action: public function index() { $

Trying to debug a SF datasource

2013-07-22 Thread chris graber
see that I get 10 "rows" back. Turns out I can do $record->*any*, but that shows all the fields, all concatenated together like "TestAccount001i008aLOFAA2CC978213..." Not sure why it can't find "Name", etc. -Chris -- Like Us on FaceBook https://www.fac

Salesforce Integration

2013-06-30 Thread chris graber
Anyone integrate with Salesforce? I'm trying out several things (PHP Toolkit, etc). Looking for a slam dunk solution so I don't have to do something fully custom. I need to make a site where users are authenticated, but the user/pass are in a Salesforce object. So behind the scenes a connection

Strange cache behavior in console scripts

2013-06-24 Thread Chris Cinelli
to mess up with ShellDispatcher.php under /lib that makes updating CakePHP a little more error prone (we need to remember that we change stuff in /lib) -- Best, Chris --Everything should be made as simple as possible, but not simpler (Albert Einstein) Read it as: "As simpl

Re: illuminate, remove Year in birthday field in cake 1.3

2013-06-22 Thread Chris
nk you for your help,... On Saturday, June 22, 2013 1:35:59 PM UTC-7, Jeremy Burns wrote: > > Have you thought about adding month and day fields to the table and > populating them beforeSave? Less processing required when you want to run > your cron job. > > Jeremy Burns

Re: illuminate, remove Year in birthday field in cake 1.3

2013-06-22 Thread Chris
able and > populating them beforeSave? Less processing required when you want to run > your cron job. > > Jeremy Burns > Class Outfit > > http://www.classoutfit.com > > On 22 Jun 2013, at 21:13:01, Chris > > wrote: > > Hi guys,... can anyone help me pleas

illuminate, remove Year in birthday field in cake 1.3

2013-06-22 Thread Chris
d... e.g. $this->Email->subject = ucfirst(i18n::translate('your friend')) . ' : ' . $user['User']['firstname'] . ' ' . ucfirst(i18n::translate('celebrating birthday')); on a Social Network site. thanks in advance chris

Re: cronjob in cakephp 1.3

2013-06-21 Thread Chris
2013 12:08:10 AM UTC-7, marco metal wrote: > > Hi Chris, > > Add this file cron_dispatcher.php under /app/webroot/. > > Then to call the function from ssh you need to write it like this:- > > /usr/bin/php path_to_your_project_webroot/cron_dispatcher.php &g

Re: removing in Form->end closing, in cakephp 1.3

2013-06-20 Thread Chris
thanks Glenn,... I'll try On Sunday, June 9, 2013 7:52:49 PM UTC-7, Glenn Quinto wrote: > > i found by this way, $this->Form->end(array('label' => 'Send', 'div' => > FALSE)); > > On Friday, May 10, 2013 12:39:13 PM UTC+8, Chris wro

cronjob in cakephp 1.3

2013-06-20 Thread Chris
t']['ending'] <= $today_date) { $this->Guest->delete($guest['Guest']['id']); } } } thanks in advance chris -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message be

Re: E_STRICT error popping up in production.

2013-06-20 Thread Chris Cinelli
& ~E_STRICT ? I am asking because that changes seems that I am going to see the error neither on the screen nor in the logs. Best, Chris On Thu, Jun 20, 2013 at 3:57 AM, euromark wrote: > Yes, for PHP5.3 and higher you need to explicitly eclude estrict now > > > Am Donn

Anyone tried installing CakePHP on Google App Engine (since PHP now support)

2013-06-20 Thread Chris G
Just curious as to whether anyone had come across a tutorial on getting CakePHP up and running on Google App Engine since php support has come online? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because yo

Re: E_STRICT error popping up in production.

2013-06-19 Thread Chris Cinelli
Just to make it clear. It pops up in the browser. On Wed, Jun 19, 2013 at 6:41 PM, Chris Cinelli < chris.cine...@formativelearning.com> wrote: > We are on cakePHP 2.2.1 > > I have an E_STRICT error popping in up in production even if CORE_DEBUG = 0 > > Our error h

E_STRICT error popping up in production.

2013-06-19 Thread Chris Cinelli
ED, 'trace' => true )); Do I need to have 'level' => E_ALL & ~E_DEPRECATED & ~E_STRICT ? Why is it not like this by default? Best, Chris --Everything should be made as simple as possible, but not simpler (Albert Einstein) Read it as: "As simple as possible, a

Re: Cakephp Ajax helper or Jquery?

2013-05-26 Thread Chris
download and add jquery ajax helper http://www.cakephp.4uk.pl/ and use jquery libs On Friday, May 24, 2013 2:21:45 AM UTC-7, Sam wrote: > > Hi Cakephp experts, > > I would like to try out Ajax. May I know what are the pros and cons of > Cakephp Ajax helper and Jquery? I have never touched aj

jQuery calendar planner to integrate in cake1.3, please suggest.

2013-05-20 Thread Chris
to it,... Have anyone tried this one,... ? https://github.com/dkullmann/CakePHP-Calendar-Plugin this one is got user interface build into it,... thanks in advance chris and BIG Thanks Plugin Creators,... -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter

Re: removing in Form->end closing, in cakephp 1.3

2013-05-18 Thread Chris
search. > > On Friday, May 10, 2013 8:52:39 PM UTC-4, Chris wrote: >> >> hi Andre,... thank you for your reply,... >> >> this: Form->end(array('text'=>'Search', 'div'=>false)); >> ?> remove the ... >> however value

Re: searching users table with token = NULL

2013-05-13 Thread Chris
is smart > enough to recognise equality or inequality with nulls, so you could do the > following: > > $this->paginate = array('User' => array('conditions' => > array('User.token ' . $this->data['User']['activated

Re: removing in Form->end closing, in cakephp 1.3

2013-05-10 Thread Chris
the source: On Friday, May 10, 2013 4:34:58 AM UTC-7, André Luis wrote: > > Try: $this->Form->end(array('div'=>false,'text'=>'Send')); > > Em sexta-feira, 10 de maio de 2013 01h39min13s UTC-3, Chris escreveu: >> >> hi guys,

removing in Form->end closing, in cakephp 1.3

2013-05-09 Thread Chris
t;input('User.username', array('type'=>'text', 'label'=> 'username', 'div' => false)); ?> Form->select('rank', $ranks, null, array('div' => false, 'empty' => 'users role' )) ?

searching users table with token = NULL

2013-05-09 Thread Chris
> array('User.token LIKE'=>'IS'.($this->data['User']['activated'] == 'yes' ? '' : 'NOT') . ' NULL' ))); thanks in advance chris -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://

Model validation rule in cake1.3

2013-04-20 Thread Chris
#x27;required' => false, 'allowEmpty' => false, 'message' => 'forbidden entry', ), thanks in advance chris -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received t

Re: validating in controller with preg_match "script"

2013-04-19 Thread Chris
ication' => array('user_id' => $user['User']['id'], 'member_id' => $this->user['id'], 'content' => $content, 'note' => $title, 'type' => 21, 'created' => date('Y-

Re: validating in controller with preg_match "script"

2013-04-18 Thread Chris
gt;|script)$/'; On Thursday, April 18, 2013 5:48:04 PM UTC-7, Chris wrote: > > hi guys,... can anyone help please,... > how can I find if string contains "script" tag with preg_match,... ? > I'm trying to avoid/aboard submission if data passed as > <script>... > > $short_status = $this->params['form']['value']; > > $regex = '/^[

validating in controller with preg_match "script"

2013-04-18 Thread Chris
hi guys,... can anyone help please,... how can I find if string contains "script" tag with preg_match,... ? I'm trying to avoid/aboard submission if data passed as ... $short_status = $this->params['form']['value']; $regex = '/^[

Re: changing table fields value for all found in the list

2013-04-17 Thread Chris
hi david,... a quick question,... do I have to have "&" upfront of $photo in foreach ($photos as &$photo) and what is it stand for..? thanks chris On Monday, April 15, 2013 11:17:31 PM UTC-7, david...@gmail.com wrote: > > You are doing a redirect inside of yo

Re: find all users from another table

2013-04-16 Thread Chris
thanks david,... I actually solve this problem with $this->PhotoLike->find('all',... My PhotoLike Model belongsTo 'User' => array('className' => 'User', 'foreignKey'=> 'user_id'), and I have a Profile helper that brings profile pictures and user data to show up in a views,... On Mon

Re: find all users from another table

2013-04-16 Thread Chris
thanks david,... I'll try,... off the records,... how long you doing cake apps,...? are you good with jQuery,...? I'm new to cake,... but building awesome social network,... if you want to see it and participate,... drop me a line chris69m AT Yahoo Dot Com On Monday, April 15, 2013 11:10:53

Re: changing table fields value for all found in the list

2013-04-16 Thread Chris
thanks david,... I'll try,... On Monday, April 15, 2013 11:17:31 PM UTC-7, david...@gmail.com wrote: > > You are doing a redirect inside of your loop which is kicking you out of > your loop. That is why only the first update works. > > Also, there is no need to use the query method. You would

find all users from another table

2013-04-15 Thread Chris
#x27;conditions' => array('PhotoLike.photo_id' => $photo['Photo']['id']), 'order' => array('PhotoLike.created' => 'DESC'; debug($photo_likes); $this->set('photo_like_users', $photo_like

Re: CKEditor and model validation

2013-04-15 Thread Chris
o_comments/ajax_show' .'/'. $photo['Photo']['id'], array('return')); echo $response; die(); } submitting data not getting thru,... getting response from echo 'please fill in your comments'; what that means is my data can't

changing table fields value for all found in the list

2013-04-15 Thread Chris
$photos = $this->Photo->find('all', array('conditions' => array('Photo.user_id' => $user['User']['id']))); $this->set('photos', $photos); foreach ($photos as $photo) { $this->Photo-

Re: ajax content within ajax page call

2013-04-13 Thread Chris
thanks guys,... On Wednesday, April 3, 2013 9:56:48 PM UTC-7, Chris wrote: > > hi guys,... can anyone help please,... > > I have a photo page with lots of ajax function, features in it,... e.g. > Likes, Dislikes, Make Favorite,... and Post a Comment,... I'm calling this

Re: retrieving data in a view cake 1.3

2013-04-13 Thread Chris
thanks david,... On Tuesday, April 2, 2013 11:25:16 AM UTC-7, david...@gmail.com wrote: > > The easiest way to debug a problem like this is to set up a debugging > environment (like NetBeans and XDebug see > https://netbeans.org/kb/docs/php/debugging.html). You can then set a > break point at

Re: Jquery and Internet Explorer compatibility in cake1.3

2013-04-13 Thread Chris
gt;').load(t.attr('href')).dialog({ > autoOpen: false, > width: 500, > modal: true, > title: 'Report Photo', > }); > }); > }); > > and the link: > class="report"> > > > 2013/4/12 Chris > > >> thanks rchavik,... >> that so

Re: CKEditor and model validation

2013-04-13 Thread Chris
'5', 'class' => 'ckeditor')); ?> can you share with us please,... thanks in advance chris On Saturday, April 13, 2013 9:11:15 AM UTC-7, frederikjacques wrote: > > Hi all, > > I was wondering how you can use CKEditor and the model validation ar

Re: database.php permission

2013-04-13 Thread Chris
"So anybody could know the user and the password.Is it correct?" -- No, It's not correct, nobody can see that file (database.php) unless you give your FTP access, On Saturday, April 13, 2013 9:25:22 AM UTC-7, and wrote: > > In database.php are stored some information about username and

Re: How to use tinymce plugin?

2013-04-12 Thread Chris
hi andrewperk,... I download ckeditor too, but having a problem with submission,... it's not submitting at all,... seems like "content" field reading empty even when I type something in there,... is there something else to it...? can you share with us,... thanks in advance Form->create('Pho

Re: Jquery and Internet Explorer compatibility in cake1.3

2013-04-12 Thread Chris
reload the page to trigger jquery how can I solve this,...? thanks a lot,... chris On Thursday, April 11, 2013 5:44:24 PM UTC-7, rchavik wrote: > > > > On Friday, 12 April 2013 03:31:24 UTC+7, Chris wrote: >> >> hi guys,... can anyone help please,... I know its n

Jquery and Internet Explorer compatibility in cake1.3

2013-04-11 Thread Chris
7;open'); return false; }); }); }); and the link: link(__('report', true), '/report/photo/' . $photo['Photo']['id'], array('class' => 'report')) ?> thanks in advance chris -- Like Us on FaceBook https://www.facebook.com/CakePHP

ajax content within ajax page call

2013-04-03 Thread Chris
dSlideshow) hs.addSlideshow({ //slideshowGroup: 'group1', interval: 5000, repeat: false, useControls: true, fixedControls: 'fit', overlayOptions: { opacity: .75, position: 'bottom center', hideOnMouseOut: true } }); thanks in advance chris -- Like Us on FaceBook

Re: New to CakePHP

2013-03-30 Thread Chris
look into /app/config/bootstrap.php file you should have settings something like: Configure::write('Site.contact_email', 'whatever@your_site.com'); Configure::write('Site.contact_email_subject', 'some subject'); On Wednesday, March 27, 2013 10:32:48 AM UTC-7, Ellie Quick wrote: > > Help, >

Re: Cake Gallery

2013-03-30 Thread Chris
this is how I upload images and create thumbs in any sizes without any plugin,... of course you have to modify to your own needs,... don't forget to create subdirectories in webroot/photos/ original,... thumbs,... etc,... and chmod to 777 function upload in photos_controller: function uplo

retrieving data in a view cake 1.3

2013-03-30 Thread Chris
// debug($notifications); } and here is the view: link($application->cut($note['User']['firstname'] . ' ' . $note['User']['lastname'], 25), '/profile/' . $note['User']['username']) ?> ... ,... ,... ,... and Notificatio

filter multiple fields problem in autoComplete cake 1.3

2013-03-28 Thread Chris
#x27;User' => array('conditions' => array('User.token IS NULL', 'User.firstname LIKE'=>$this->data['User']['name'].'%', 'fields' => array('firstname', 'lastname', 'city') )));

Re: passing form inputs into controller

2013-03-22 Thread Chris
the problem is solved,... $subject = $this->data['GroupMember']['subject']; $content = $this->data['GroupMember']['content']; thanks On Friday, March 22, 2013 10:59:10 PM UTC-7, Chris wrote: > > hi guys,... can anyone help please,... I

passing form inputs into controller

2013-03-22 Thread Chris
'send/'. $group['Group']['id']) )); ?> Form->input('subject'); ?> Form->input('content', array('rows' => '4')); ?> Form->end('Send'); ?> how can I do this,...? thanks in advance, chris

Fatal error fatal error call to undefined function

2013-03-21 Thread Chris Steenekamp
Keep getting this error in cake 1.3: fatal error call to undefined function app/views/layout/default.ctp line 7 Here is the line and code it is referring to: $combinator->add_libs('css', array( "stylesheet", 'jquery-ui-1.8rc3.custom', "jquery-ui-1.8.20.custom", isset($customCss) ? $customCss : "

Re: ajax Update in a page with 2 divs

2013-03-20 Thread Chris
27;add'), *'update' =>array( > 'updateBookmark1','updateBookmark2' )*, 'complete' => > 'javascript:resetBookmarkForm();' )); ?> > > Em quarta-feira, 20 de março de 2013 07h12min52s UTC-3, Chris escreveu: >> >> >> hi guys,...

ajax Update in a page with 2 divs

2013-03-20 Thread Chris
hi guys,... how you all doing, can anyone help please,... I got an ajax form that submits and add bookmarks to a site and it's working,... Is it possible to Update in a page with 2 divs ? and how can I do that in a form: , 'update' => 'updateBookmark1',...? and where should I insert 'upd

Re: reset form after submission

2013-03-15 Thread Chris
few minor things, Thanks again, Sincerely, chris On Thursday, March 14, 2013 4:42:42 PM UTC-7, cricket wrote: > > I'm not quite sure what you're doing but it looks like you should be doing > this: > > 'complete' => 'javascript:resetR

Re: reset form after submission

2013-03-14 Thread Chris
anyone,... anyone has any idea how can I reset form with unique ID,... please,... On Sunday, March 3, 2013 2:32:57 PM UTC-8, Chris wrote: > > hi guys,... can anyone help please,... I'm using jQuery,... > how can I reset form after submission with unique ID, this is what I

Re: ajax submit and reset form after submission

2013-03-14 Thread Chris
cript:resetReportPhotoCommentForm();' )); ?> end(); ?> and here is the script: function resetReportPhotoCommentForm() { $('#ReportComments_<?php echo $photo_comment['PhotoComment']['id'] ?>').each(function(){

Re: reset form after submission

2013-03-13 Thread Chris
can anyone help please,... On Sunday, March 3, 2013 2:32:57 PM UTC-8, Chris wrote: > > hi guys,... can anyone help please,... I'm using jQuery,... > how can I reset form after submission with unique ID, this is what I have > so far,... but it reset ONLY for last comment rep

Re: ajax call content in dialog box without remoteFunction

2013-03-13 Thread Chris
turn false; }); }); }); and the link: link(__('report', true), '/report/photo_comment/' . $photo_comment['PhotoComment']['id'], array('class' => 'report')) ?> thank You guys All ! Salute, chris On Saturday, March 9, 2013 3:11:24 PM UTC-

Re: ajax call content in dialog box without remoteFunction

2013-03-09 Thread Chris
ePHP, anyway? > > On Sat, Mar 9, 2013 at 4:33 PM, Chris > > wrote: > > hi there,… can you help me please,… > > I’m trying to load dialog page, but instead I’m getting new window > popup,… > > how can I accomplish this,…? > > > > hi guys,... can

Re: ajax call content in dialog box without remoteFunction

2013-03-09 Thread Chris
x27;/report/photo_comment/' . $photo_comment['PhotoComment']['id'], array('id' => "photo_comments_opener_".$photo_comment['PhotoComment']['id'], 'class' => 'report', 'onclick' => "window.open(t

Re: ajax call content in dialog box without remoteFunction

2013-03-09 Thread Chris
can anyone help please,... On Thursday, March 7, 2013 5:23:46 PM UTC-8, Chris wrote: > > hi guys,... can anyone help please ,... > how can I call content from another page into a dialog box without > remoteFunction,... any other way,...? > > > <?php echo $ajax-&g

Re: ajax call content in dialog box without remoteFunction

2013-03-08 Thread Chris
anyone,...? On Thursday, March 7, 2013 5:23:46 PM UTC-8, Chris wrote: > > hi guys,... can anyone help please ,... > how can I call content from another page into a dialog box without > remoteFunction,... any other way,...? > > > <?php echo $ajax->remoteFu

ajax call content in dialog box without remoteFunction

2013-03-07 Thread Chris
27; => 'report_spam/', $photo_comment['PhotoComment']['id']), 'update' => "photo_comments_reports_".$photo_comment['PhotoComment']['id'] )); ?> this is what I currently have,... but it's conflicting with remoteFu

Re: reset form input after submission with jQuery and unique ID

2013-03-05 Thread Chris
I have moved topic to new post,... can anyone help please,... https://groups.google.com/forum/?fromgroups=#!topic/cake-php/amKeMnVR_dI On Tuesday, February 26, 2013 8:45:43 PM UTC-8, Chris wrote: > > hi guys,... can anyone help please,... > how can I reset form after submission with

Re: reset form after submission

2013-03-05 Thread Chris
anyone,...? On Sunday, March 3, 2013 2:32:57 PM UTC-8, Chris wrote: > > hi guys,... can anyone help please,... I'm using jQuery,... > how can I reset form after submission with unique ID, this is what I have > so far,... but it reset ONLY for last comment report. this for

Re: reset form input after submission with jQuery and unique ID

2013-03-05 Thread Chris
anyone...? On Tuesday, February 26, 2013 8:45:43 PM UTC-8, Chris wrote: > > hi guys,... can anyone help please,... > how can I reset form after submission with unique ID, with jquery? Where > unique ID is $photo_comment['PhotoComment']['id'] > > this

Re: search filter in cake 1.3

2013-03-04 Thread Chris
e' => $page, > 'conditions' => array( > "MATCH(User.firstname) AGAINST('${q}' IN BOOLEAN MODE)" > ), > 'contain' => array() > ); > > The $limit & $page vars are gotten from $this->req

Re: search filter in cake 1.3

2013-03-04 Thread Chris
anyone? On Sunday, March 3, 2013 4:45:08 PM UTC-8, Chris wrote: > > hi guys,... can anyone help please,... I'm using cake 1.3 > how can I filter search results by user firstname > > this is my form input: > > Form->create('User', array('action&#

search filter in cake 1.3

2013-03-03 Thread Chris
ms)) { $this->set('users', $this->paginate()); } else { $this->set('users', $this->paginate(array("User.firstname LIKE '{$params['find']}%'"))); } } thanks in advance

reset form after submission

2013-03-03 Thread Chris
x27;id']), 'update' => "updateReportPhotoComment_".$photo_comment['PhotoComment']['id'], 'complete' => 'javascript:resetReportPhotoCommentForm();')); ?> end(); ?> function resetReportPhotoCommentForm() { document.ge

reset form input after submission with jQuery and unique ID

2013-02-26 Thread Chris
;. $photo_comment['PhotoComment']['id']), 'update' => "updateReportPhotoComment_".$photo_comment['PhotoComment']['id'], 'complete' => 'javascript:resetReportPhotoCommentForm();')); ?> end(); ?> function resetReportPhotoCommentForm()

jQuery dialog box with remoteFunction Ajax Call

2013-02-26 Thread Chris
27;, 'action' => 'report_spam/', $photo_comment['PhotoComment']['id']), 'update' => 'photo_comments_reports')); ?> is there a way make ajax call without remoteFunction call...?? Thanks in advance chris -- L

Re: autocomplete issue in cake 1.3

2013-02-25 Thread Chris
sorry guys,... I misstyped form,... this is the right one: Form->create('User', array('url' => '/users/search')); ?> Ajax->autoComplete('User.name', '/users/autoComplete', array('label' => false)); ?> Form->e

autocomplete issue in cake 1.3

2013-02-22 Thread Chris
LIKE' => $this->params['url']['q'].'%', 'User.lastname LIKE' => $this->params['url']['q'].'%' )), 'fields' => array('firstname', '

Re: autoComplete with jquery in cake 1.3

2013-01-29 Thread Chris
then it isn't a Cake problem. I'd guess > CSS, probably with the floats. Have you tried installing Firebug? > > On Tue, Jan 29, 2013 at 5:31 AM, Chris > > wrote: > > hi guys,.. can you help me please,... > > I'm in cake 1.3 and using jquery libraries

autoComplete with jquery in cake 1.3

2013-01-29 Thread Chris
s my function: function autoComplete() { $this->set('members', $this->User->find('all', array( 'conditions' => array( 'User.firstname LIKE' => $this->params['url']['q'].'%' ), 'fields' => array('f

Re: loading plugin in cake 1.3 bootstrap

2013-01-17 Thread Chris
s&check_keywords=yes&area=default > > AD > > On Thursday, 17 January 2013 10:17:14 UTC+1, Chris wrote: >> >> hi AD7six,... how r u,... >> I'm on 1.3 version >> >> >> On Thursday, January 17, 2013 1:08:34 AM UTC-8, AD7six wrote: >>&g

Re: loading plugin in cake 1.3 bootstrap

2013-01-17 Thread Chris
( the site is stop working,... On Thursday, January 17, 2013 1:08:34 AM UTC-8, AD7six wrote: > > Evidently you are using syntax from a different version of CakePHP to the > one you have installed. > > What version of Cake are you using? > > AD > > On Thursday, 17 January 2

Re: loading plugin in cake 1.3 bootstrap

2013-01-17 Thread Chris
On Thursday, 17 January 2013 08:38:12 UTC+1, Chris wrote: >> >> anyone,...?? >> >> >> On Wednesday, January 16, 2013 6:12:55 AM UTC-8, Chris wrote: >>> >>> hi guys,... can someone help please,... >>> I'm having a problem

Re: loading plugin in cake 1.3 bootstrap

2013-01-16 Thread Chris
anyone,...?? On Wednesday, January 16, 2013 6:12:55 AM UTC-8, Chris wrote: > > hi guys,... can someone help please,... > I'm having a problem loading plugin from bootstrap > > CakePlugin::load('Facebook'); > > I have also tried: > CakePlugin::load(array(

loading plugin in cake 1.3 bootstrap

2013-01-16 Thread Chris
Fatal error: Class 'CakePlugin' not found in How can I do this,... thanks in advance chris -- 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 "

Re: updating table field by date

2012-12-19 Thread Chris
thank you jsunquist,... I'll try,... On Wednesday, December 19, 2012 12:45:28 PM UTC-8, jsundquist wrote: > > Chris, > > Just to help you out instead of the giant mktime string you have you can > also use strtotime(). Within the function you can simply do strtotime('

Re: updating table field by date

2012-12-19 Thread Chris
save($dba); $this->redirect('/'); } $this->redirect('/dbas/view/' . $dba['Dba']['id']); } } On Wednesday, December 19, 2012 11:11:07 AM UTC-8, cricket wrote: > > Create a shell task to fetch all records with

updating table field by date

2012-12-19 Thread Chris
', $after_30); now I want to set $dba['Dba']['featured'] = 0; after 30 days, and reset "featured_start" and "featured_end" to NULL so the promotion can stop,... how can I this,...? thanks in advance chris -- Like Us on FaceBook https://www.faceb

Re: select box link and jump to selected category

2012-12-17 Thread Chris
not the Sluggable I meant. Use this one: > > > https://github.com/dereuromark/tools/blob/2.0/Model/Behavior/SluggedBehavior.php > > That other one is a really lame "update" of the original. > > > On Sat, Dec 15, 2012 at 3:18 PM, lowpass > > wrote: >

users session delete, destroy ??

2012-12-17 Thread Chris
27;]); // Here is the part where I want to delete user sission $this->Cookie->delete($user['User']['username']); $this->Cookie->delete($user['User']['hashed_password']); $this->flash('valid', ucfirst(i18n::translate('accou

search by username or email

2012-12-15 Thread Chris
27;email') as $field) { if(!empty($filter[$field])) $scope[] = 'User.' . $field . ' LIKE \'%' . $filter[$field] . '%\''; } thanks in advance chris -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitte

Re: select box link and jump to selected category

2012-12-14 Thread Chris
tosanimalswhere it should be value=arts value=autos etc... On Friday, December 14, 2012 11:32:53 AM UTC-8, cricket wrote: > > That's because you're passing the ID of the form, not the select > widget. It's the select that changes. > > On Fri, Dec 14, 2012 at

Re: select box link and jump to selected category

2012-12-13 Thread Chris
rray( > 'controller' => 'categories', > 'action' => 'view' > ), > array( > 'slug' => '[-a-z0-9]+', > 'pass' =>

Re: select box link and jump to selected category

2012-12-13 Thread Chris
Your question is a bit > vague. > > On Thu, Dec 13, 2012 at 7:09 AM, Chris > > wrote: > > hi guys,... > > how can I link and jump to selected category from select box once it > > selected,...? > > I'm reading categories from helper: > > Form-&g

select box link and jump to selected category

2012-12-13 Thread Chris
hi guys,... how can I link and jump to selected category from select box once it selected,...? I'm reading categories from helper: Form->input("categories" , array('label' => false, 'type' => 'select', 'options'=>$applicatio

Re: language problem in database cake1.3

2012-12-13 Thread Chris
day, December 12, 2012 3:53:58 AM UTC-8, Marcelo F Andrade wrote: > > > On Tuesday, December 11, 2012 10:36:01 AM UTC-8, Chris wrote: > >> > >> anyone,...? > >> why do I see this crap in a view with cake1.3,? > >> ›Ð°Ñ ковый май- Розо

Re: language problem in database cake1.3

2012-12-11 Thread Chris
the problem is solved,... On Tuesday, December 11, 2012 10:36:01 AM UTC-8, Chris wrote: > > anyone,...? > why do I see this crap in a view with cake1.3,? > ›Ð°Ñ ковый май- Розовый вечер > > where it used to work in 1.2 > > thanks > >

  1   2   3   4   5   6   7   8   9   10   >