Re: Any Good CakePHP Development Firms?
On Sat, Aug 30, 2008 at 8:09 PM, teknoid <[EMAIL PROTECTED]> wrote: > > From the CakePHP devs: http://cakedc.com/ > You can also post at http://cakephp.org/jobs Plus I am sure you will get some offers directly from folks reading your original mail Cheers Tarique -- = Cheesecake-Photoblog: http://cheesecake-photoblog.org PHP for E-Biz: http://sanisoft.com = --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: webservices
http://c7y.phparch.com/c/entry/1/art,cakephp-rest On Sat, Aug 30, 2008 at 10:09 PM, . <[EMAIL PROTECTED]> wrote: > how do i enable REST or SOAP in cakephp 1.2? > > I cannot find this line in core.php: > > define('WEBSERVICES', 'on'); > > what do i do? > > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: nested condition
> Only, unfortunately, I found out cake can't yeild expression like: > > sth NOT IN('a','b') Yes it can, use 'not' => array('sth' => array('a', 'b')) And you could write those conditions like this > 'conditions'=>array( > array( 'or' => array( > array('Report.user_id' => $user_id), > array('Report.user_id2' => $user_id) > )), > array('or'=>array( > array('Report.del_flg' => 0), > array('Report.status <>' => array('6s', '6r')) > )) > ) --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
webservices
how do i enable REST or SOAP in cakephp 1.2? I cannot find this line in core.php: define('WEBSERVICES', 'on'); what do i do? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: method find using regex
> athttp://book.cakephp.org/view/73/retrieving-your-data, is some info > about usind find with regex (at conditions param). I can't find one > example of usage and there is nothing at the docs. Someone can give a > example of usage? I actually didn't understand what you want but if you want to use REGEXP in your query: $this->Project->find('all', array( 'conditions' => array( 'Project.title REGEXP' => '^ui' ) )) Always when using operators in find conditions use them in the field's side, to avoid sql injections --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Vendors: Trouble understanding+correct use
For the record: http://book.cakephp.org/view/538/loading-vendor-files On Sat, Aug 30, 2008 at 6:50 PM, spyros k. <[EMAIL PROTECTED]> wrote: > > Ok, it's solved. > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Auth - can't login
Has your user table a field called `username` ? On Sat, Aug 30, 2008 at 6:00 PM, Jeroen <[EMAIL PROTECTED]> wrote: > > I followed the instructions on http://book.cakephp.org/view/172/authentication > to create a login. The problem is that I get the following error when > I try to login: > SQL Error: 1054: Unknown column 'User.username' in 'where clause' [CORE > \cake\libs\model\datasources\dbo_source.php, line 512] > > Cake (Auth) searches for the wrong table to login, it need to search > for the table Users instead of User. > I'm using Cake version 1.2.0.7296 RC2. > > I use the following code: > class AppController extends Controller { >var $components = array('Auth'); > >function beforeFilter(){ >$this->Auth->loginAction = > array(Configure::read('Routing.admin') => > false, 'controller' => 'users', 'action' => 'login'); >$this->Auth->allow('index','view'); >} > > } > > Login view: > if ($session->check('Message.auth')) $session->flash('auth'); >echo $form->create('User',array('action' => 'login')); >echo $form->input('username'); >echo $form->input('password'); >echo $form->end('Login'); > ?> > > class UsersController extends AppController { > >var $name = 'Users'; >var $helpers = array('Html', 'Form', 'Session' ); > >/** >* The AuthComponent provides the needed functionality >* for login, so you can leave this function blank. >*/ >function login() { >} > >function logout() { >$this->redirect($this->Auth->logout()); >} > > } > ?> > > I tried the following things: > 1. echo $form->create('Users',array('action' => 'login')); instead of > echo $form->create('User',array('action' => 'login'));, but then Auth > wopn't do anything at all. Comparing to other views the syntax echo > $form->create('User',array('action' => 'login')); should be the > correct synax. > 2. Searching the Internet if anyone else had the same problem, but I > can't find anyone with the same problem. > > Three questions > 1. Is this a bug of CakePHP 1.2.0.7296 RC2 or am I doing something > wrong? > 2. Is there amnyone else who uses the Auth-component successfully in > version 1.2.0.7296 RC2? > 3. The most important: anyone has a solution or got an idea?? :) > > Thanks, > > Jeroen > > > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: auth in front controller and blank page
Having the same problem. I thought I resolved it by switching ACL and Auth around in my components array but it came back later in another view. Any luck with this? On Aug 5, 1:17 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > on my localhost all work fine but in my webserver when im puted > app_controller.php aftert that i haveblankpage: > > class AppController extends Controller{ > var $uses = array('Tracker'); > var $components = array('Acl','Auth','P28n'); > function beforeFilter(){ > if(isset($this->params['lang'])){ > $this->Session->write('Config.language', > $this->params['lang']); > } > > if(isset($this->Auth)){ > if($this->viewPath == 'pages') > $this->Auth->allow('*'); > else{ > $this->Auth->fields = array('username' => > 'login','password' => > 'password'); > $this->Auth->loginAction = '/users/login'; > $this->Auth->authorize = 'actions'; > //$this->Auth->loginRedirect = > array('controller' => 'members', > 'action' => 'home'); > } > } > } > /* > events in system > when u wana record event in system use this f() > eg. $user->saveData \n $this->recordEvent($user->lastInsertId); > > function recordEvent($id) { > $pages = str_replace("/index.php",'', > $_SERVER['REQUEST_URI']); > $pages = explode("/", $pages); > $userId= NULL; > if($_SESSION['is_logged']) > $userId= $_SESSION['data']['user_id']; > $this->data['Tracker']['user_id'] = $userId; > $this->data['Tracker']['action'] = (isset($pages[2]) ? > $pages[2] : > NULL); > $this->data['Tracker']['user_agent'] = > $_SERVER['HTTP_USER_AGENT']; > $ip = ip2long($_SERVER['REMOTE_ADDR']); > $this->data['Tracker']['user_ip'] = ($ip>0 ? $ip : NULL); > $this->data['Tracker']['controller'] = (isset($pages[1]) ? > $pages[1] : NULL); > $this->data['Tracker']['action'] = (isset($pages[2]) ? > $pages[2] : > NULL); > > if(isset($pages[3])) { > $params = $pages; > array_shift($params); > array_shift($params); > array_shift($params); > $this->data['Tracker']['params'] = implode('/', > $params); > } > if(isset($_SERVER['HTTP_REFERER'])) { > $this->data['Tracker']['referer'] = > $_SERVER['HTTP_REFERER']; > } else { > $this->data['Tracker']['referer'] = NULL; > } > $this->Tracker->save($this->data); > } > */ > > } > > whats happen ? i have lastest lib from svn .7436 --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Vendors: Trouble understanding+correct use
Ok, it's solved. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: method find using regex
In the context of a model find operation, REGEX is an SQL function. You need to take a look at the manual for your database to determine the correct usage. If you're using MySQL, you can check out: http://tinyurl.com/chqcu -jperras. On Aug 30, 3:35 pm, Luigi Castro Cardeles <[EMAIL PROTECTED]> wrote: > Hi list, > > athttp://book.cakephp.org/view/73/retrieving-your-data, is some info > about usind find with regex (at conditions param). I can't find one > example of usage and there is nothing at the docs. Someone can give a > example of usage? > Thanks --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Auth - can't login
I followed the instructions on http://book.cakephp.org/view/172/authentication to create a login. The problem is that I get the following error when I try to login: SQL Error: 1054: Unknown column 'User.username' in 'where clause' [CORE \cake\libs\model\datasources\dbo_source.php, line 512] Cake (Auth) searches for the wrong table to login, it need to search for the table Users instead of User. I'm using Cake version 1.2.0.7296 RC2. I use the following code: class AppController extends Controller { var $components = array('Auth'); function beforeFilter(){ $this->Auth->loginAction = array(Configure::read('Routing.admin') => false, 'controller' => 'users', 'action' => 'login'); $this->Auth->allow('index','view'); } } Login view: check('Message.auth')) $session->flash('auth'); echo $form->create('User',array('action' => 'login')); echo $form->input('username'); echo $form->input('password'); echo $form->end('Login'); ?> redirect($this->Auth->logout()); } } ?> I tried the following things: 1. echo $form->create('Users',array('action' => 'login')); instead of echo $form->create('User',array('action' => 'login'));, but then Auth wopn't do anything at all. Comparing to other views the syntax echo $form->create('User',array('action' => 'login')); should be the correct synax. 2. Searching the Internet if anyone else had the same problem, but I can't find anyone with the same problem. Three questions 1. Is this a bug of CakePHP 1.2.0.7296 RC2 or am I doing something wrong? 2. Is there amnyone else who uses the Auth-component successfully in version 1.2.0.7296 RC2? 3. The most important: anyone has a solution or got an idea?? :) Thanks, Jeroen --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
method find using regex
Hi list, at http://book.cakephp.org/view/73/retrieving-your-data, is some info about usind find with regex (at conditions param). I can't find one example of usage and there is nothing at the docs. Someone can give a example of usage? Thanks --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
paginate with containable not getting related models
PROBLEM: WHY DOES IT NOT DO A LEFT JOIN ON THE COUNTRY AS WELL ? //controller function results($searchTerm = null) { $this->Profile->Behaviors->attach('Containable'); $this->Profile->bindModel(array('belongsTo' => array('State' => array('className'=> 'State', 'conditions' => '', 'order'=> '', 'dependent'=> true, 'foreignKey' => 'state_id' ) ) ),false ); $this->paginate = array( 'conditions'=>array("Member.isActive","MATCH(Member.fname,Member.lname) AGAINST('" . Sanitize::escape($searchTerm) . "' IN BOOLEAN MODE)"), 'limit'=>10, 'order'=> array('Member.fname' => 'asc'), 'fields'=> array('Member.id', 'Member.fname', 'Member.lname','Member.modified', 'Profile.gender','Profile.primaryPhotoSrc','State.name'), 'contain'=> array('Member', 'State'=>array('Country')) ); $this->set('results',$this->Paginate('Profile')); $this->render(); } SELECT COUNT(*) AS `count` FROM `profiles` AS `Profile` LEFT JOIN `members` AS `Member` ON (`Profile`.`member_id` = `Member`.`id`) LEFT JOIN `states` AS `State` ON (`Profile`.`state_id` = `State`.`id`) WHERE `Member`.`isActive` AND MATCH(`Member`.`fname`,`Member`.`lname`) AGAINST('jack' IN BOOLEAN MODE) SELECT `Member`.`id`, `Member`.`fname`, `Member`.`lname`, `Member`.`modified`, `Profile`.`gender`, `Profile`.`primaryPhotoSrc`, `State`.`name`, `State`.`id` FROM `profiles` AS `Profile` LEFT JOIN `members` AS `Member` ON (`Profile`.`member_id` = `Member`.`id`) LEFT JOIN `states` AS `State` ON (`Profile`.`state_id` = `State`.`id`) WHERE `Member`.`isActive` AND MATCH(`Member`.`fname`,`Member`.`lname`) AGAINST('jack' IN BOOLEAN MODE) ORDER BY `Member`.`fname` asc LIMIT 10 class State extends AppModel { var $name = 'State'; var $belongsTo = array('Country' => array('className' => 'Country', 'conditions' => "", 'order' => '', 'foreignKey' => 'country_id', ) ); } class Country extends AppModel { var $name = 'Country'; var $hasMany = array('State' => array('className' => 'State', 'order' => '', 'limit' => '', 'foreignKey'=> 'country_id', 'dependent' => true ) ); } --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Vendors: Trouble understanding+correct use
Hi again, I am still searching for an answer regarding vendors in cakephp and haven't found anything yet. Could someone please explain to me how to use them correctly, or if there is a tutorial/howto that I can read? Just in case someone has the patience to read it i am posting below the code of s3.php : http://undesigned.org.za/2007/10/22/amazon-s3-php-class * @version 0.3.3 */ class S3 { // ACL flags const ACL_PRIVATE = 'private'; const ACL_PUBLIC_READ = 'public-read'; const ACL_PUBLIC_READ_WRITE = 'public-read-write'; public static $useSSL = true; private static $__accessKey; // AWS Access key private static $__secretKey; // AWS Secret key /** * Constructor, used if you're not calling the class statically * * @param string $accessKey Access key * @param string $secretKey Secret key * @param boolean $useSSL Whether or not to use SSL * @return void */ public function __construct($accessKey = null, $secretKey = null, $useSSL = true) { if ($accessKey !== null && $secretKey !== null) self::setAuth($accessKey, $secretKey); self::$useSSL = $useSSL; } /** * Set access information * * @param string $accessKey Access key * @param string $secretKey Secret key * @return void */ public static function setAuth($accessKey, $secretKey) { self::$__accessKey = $accessKey; self::$__secretKey = $secretKey; } /** * Get a list of buckets * * @param boolean $detailed Returns detailed bucket list when true * @return array | false */ public static function listBuckets($detailed = false) { $rest = new S3Request('GET', '', ''); $rest = $rest->getResponse(); if ($rest->error === false && $rest->code !== 200) $rest->error = array('code' => $rest->code, 'message' => 'Unexpected HTTP status'); if ($rest->error !== false) { trigger_error(sprintf("S3::listBuckets(): [%s] %s", $rest- >error['code'], $rest->error['message']), E_USER_WARNING); return false; } $results = array(); //var_dump($rest->body); if (!isset($rest->body->Buckets)) return $results; if ($detailed) { if (isset($rest->body->Owner, $rest->body->Owner->ID, $rest->body- >Owner->DisplayName)) $results['owner'] = array( 'id' => (string)$rest->body->Owner->ID, 'name' => (string)$rest- >body->Owner->ID ); $results['buckets'] = array(); foreach ($rest->body->Buckets->Bucket as $b) $results['buckets'][] = array( 'name' => (string)$b->Name, 'time' => strtotime((string)$b- >CreationDate) ); } else foreach ($rest->body->Buckets->Bucket as $b) $results[] = (string) $b->Name; return $results; } /* * Get contents for a bucket * * If maxKeys is null this method will loop through truncated result sets * * @param string $bucket Bucket name * @param string $prefix Prefix * @param string $marker Marker (last file listed) * @param string $maxKeys Max keys (maximum number of keys to return) * @param string $delimiter Delimiter * @return array | false */ public static function getBucket($bucket, $prefix = null, $marker = null, $maxKeys = null, $delimiter = null) { $rest = new S3Request('GET', $bucket, ''); if ($prefix !== null && $prefix !== '') $rest- >setParameter('prefix', $prefix); if ($marker !== null && $marker !== '') $rest- >setParameter('marker', $marker); if ($maxKeys !== null && $maxKeys !== '') $rest->setParameter('max- keys', $maxKeys); if ($delimiter !== null && $delimiter !== '') $rest- >setParameter('delimiter', $delimiter); $response = $rest->getResponse(); if ($response->error === false && $response->code !== 200) $response->error = array('code' => $response->code, 'message' => 'Unexpected HTTP status'); if ($response->error !== false) { trigger_error(sprintf("S3::getBucket(): [%s] %s", $response- >error['code'], $response->error['message']), E_USER_WARNING); return false; } $results = array(); $lastMarker = null; if (isset($response-
Re: Sortable AJAX list doesn't trigger update
> I think the problem is that you use $item['Item']['id'] for your item- > IDs and not an incrementing number. But I am not sure, maybe it's only > the format, you could try "item_" instead of "item-", you can also set > the format as option with a regular expression. Wow! I simply changed "item-" to "item_", and now it all works perfectly! This should be documented far better in the Cookbook, or people should be able to choose their own style. Thanks a bunch, mate! :D --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Sortable AJAX list doesn't trigger update
Hi Dan, I think the problem is that you use $item['Item']['id'] for your item- IDs and not an incrementing number. But I am not sure, maybe it's only the format, you could try "item_" instead of "item-", you can also set the format as option with a regular expression. Hope this helps, Michael On 30 Aug., 15:49, Dan Soendergaard <[EMAIL PROTECTED]> wrote: > Hi bakers! > > I'm trying to create a list of div's which should be sortable by > drag'n'drop. The code can be seen herehttp://bin.cakephp.org/view/649090085 > > Basically, I'm using the Javascript and Ajax helpers, the libraries > are included in the layout, > > --- > echo $javascript->link(array('prototype', 'scriptaculous')); > --- > > and using some other functionality form the libraries (like the > remoteTimer for updating a div) works just fine, thus it cannot be the > security settings, my browser, or the Ajax helper. > > Firebug doesn't show any requests being sent to the server when I drag > an item, and the Java Console doesn't show any errors... So, I'm > completely out of ideas of what the problem could be. > > The HTML being sent to the browser looks like > thishttp://bin.cakephp.org/view/389641311 > > Any help is appreciated :) > > Sincerely, > Dan --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: cannot get ibm tutorial part 2 var belongto work ! anyone done this tutoral before ??
On Aug 31, 12:30 am, Rafael Bandeira aka rafaelbandeira3 <[EMAIL PROTECTED]> wrote: > > > class Product extends AppModel > > { > > var $name = 'Product'; > > var $belongsTo = array ( > > 'Dealer' => array( > > 'className' => 'Dealer', > > > 'foreignKey'=>'dealer_id' > > ) > > );} > > are you sure your code is just it? Make sure your aro/aco/acl is right, as well as the controller code. The tutorial works. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: l10n - passing variables to _()
Hi, just user sprintf() (or printf()): In your View: printf(__("age_old", true), 55); In your .po: msgid "age_old" msgstr "I am %d years old" Look at http://de.php.net/sprintf for further information. Best regards Andreas On 30 Aug., 18:13, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Is there any way to pass variables inside as call to _() so I can > maintain context for the .po file translator, or do I have to do it > with multiple calls? > > i.e. > _("age_old", array('age' => 55)) > > msgid "age" > msgstr "i am {0} years old" > > output: "i am 55 years old" > > Or do I have to do this... > > _("age") . 55 . __("years") > > msgid "age" > msgstr "i am " > > msgid "years" > msgstr " years old" > > output: "i am 55 years old" --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
l10n - passing variables to _()
Is there any way to pass variables inside as call to _() so I can maintain context for the .po file translator, or do I have to do it with multiple calls? i.e. _("age_old", array('age' => 55)) msgid "age" msgstr "i am {0} years old" output: "i am 55 years old" Or do I have to do this... _("age") . 55 . __("years") msgid "age" msgstr "i am " msgid "years" msgstr " years old" output: "i am 55 years old" --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Small CMS from cakephp
> > I tried to use wildflower but its not responding so need to do some > hacking there. wildflower still needs some improvements but has some sweet features such as revisions for posts/pages ovencms looks nice - if a little overblown with features though 2008/8/30 mak <[EMAIL PROTECTED]> > > > > On Aug 30, 4:55 pm, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > > On Sat, Aug 30, 2008 at 5:22 PM, Daniel Hofstetter <[EMAIL PROTECTED]> > wrote: > > > > > Hi, > > > > >> I'm new to cake php I was just looking for a Small CMS made in > cakePHP. Can > > >> you guys Please Help me in Finding the CMS. > > >> The CMS should be small and also very easy to hack the code. > > > > > Have a look at NeutrinoCMS (http://dsi.vozibrale.com/) or WildFlower > > > (http://wf.klevo.sk/), maybe they are useful for you. > > > I tried to use wildflower but its not responding so need to do some > hacking there. > > > http://ovencms.tarkvaratehas.ee/ > > > > Stumbled across this yesterday - they claim to be GPL but want users > > to registers so did not really bother - but the feature set looks good > > > > I registered with them but I'm not able to get a single link to > download it. > > > Cheers > > Tarique > > > > -- > > = > > Cheesecake-Photoblog:http://cheesecake-photoblog.org > > PHP for E-Biz:http://sanisoft.com > > = > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Any Good CakePHP Development Firms?
>From the CakePHP devs: http://cakedc.com/ On Aug 30, 5:58 am, ChUzEk <[EMAIL PROTECTED]> wrote: > I'm looking for a really good CakePHP firm to help refactor a website > built by some developers who did not know how to use the framework > properly. > > Given that CakePHP is relatively new and there is no certification, > it's very difficult to find and determine if anyone or any firm is > truly proficient. So recommendations are appreciated. > > Thanks --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Any Good CakePHP Development Firms?
There is this which may be helpful http://withcake.com/ 2008/8/30 ChUzEk <[EMAIL PROTECTED]> > > I'm looking for a really good CakePHP firm to help refactor a website > built by some developers who did not know how to use the framework > properly. > > Given that CakePHP is relatively new and there is no certification, > it's very difficult to find and determine if anyone or any firm is > truly proficient. So recommendations are appreciated. > > Thanks > > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: cannot get ibm tutorial part 2 var belongto work ! anyone done this tutoral before ??
> class Product extends AppModel > { > var $name = 'Product'; > var $belongsTo = array ( > 'Dealer' => array( > 'className' => 'Dealer', > > 'foreignKey'=>'dealer_id' > ) > );} are you sure your code is just it? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Named parameters with subdomaining
I am working on a more comprehensive subdomaining component which you can view here: http://cakeforge.org/snippet/detail.php?type=snippet&id=225. It was my first attempt at programming a component so there is still work to be done, but I think that having a solid subdomaining component in cake is necessary. If you would like to help me on it, please let me know, as I need all the help I can get on this first one! Thanks! On Aug 28, 11:20 pm, M4ngoB00M <[EMAIL PROTECTED]> wrote: > OK - so I have discovered that Windows+Apache has this problem. It is > described here:https://trac.cakephp.org/ticket/2583 > However not described adequately. The posted "workaround" is > incomplete and unclear as there is no obvious argSeparator attribute. > > After some digging I discovered how to change the argument separator > without changing the core inside cake. > > In your routes.php file add a call to connectNamed(). If you are > already using this function, you will likely already have values set. > Simply add the argSeparator array name/value pair and use whatever > separator you like. In my call shown below I modify all routes to use > the separator of the caret (^). > > Router::connectNamed(true, array('argSeparator' => '^')); > > Hope this helps someone. > z --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: is cake reduntant ?
im not sure that you understand what a development framework is. The point of cake is not to automatically produce forms.. It is much more than that. Im assuming that by graphical point and click you mean something like dreamweaver to build your views. Even if all you were talking about was creating forms and views, the bake script would generate them much faster than you having to drag and drop form elements into a view. As for inhumanly unfriendly, Im not quite sure what is. I can definetly understand not being advanced enough to dive into the libs and other people's code. (Im still working on my skill level there). But I would bet that this: input('my_text'); ?> is much more friendly than My Text I just am not sure what is so unfriendly about option 1. Perhaps if you could be a bit more specific I could help you out with something if you are struggling. Another point, the MVC architecture massively reduces coupling which is very difficult in the old style of web development (having business, data and display logic all on the same form and having to include your headers, footers and everything else) etc.. Anyways, let me know if that helps and if you have any other questions. But, no, I don't think cake is redundant. On Aug 30, 7:56 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I mean, it can easily be replace by a graphical point and click > software to reproduce the scaffolding without wasting time on all > those pesky writing of code which is inhumanly unfriendly best done by > a dumb computer. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Sortable AJAX list doesn't trigger update
Hi bakers! I'm trying to create a list of div's which should be sortable by drag'n'drop. The code can be seen here http://bin.cakephp.org/view/649090085 Basically, I'm using the Javascript and Ajax helpers, the libraries are included in the layout, --- echo $javascript->link(array('prototype', 'scriptaculous')); --- and using some other functionality form the libraries (like the remoteTimer for updating a div) works just fine, thus it cannot be the security settings, my browser, or the Ajax helper. Firebug doesn't show any requests being sent to the server when I drag an item, and the Java Console doesn't show any errors... So, I'm completely out of ideas of what the problem could be. The HTML being sent to the browser looks like this http://bin.cakephp.org/view/389641311 Any help is appreciated :) Sincerely, Dan --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Small CMS from cakephp
On Aug 30, 4:55 pm, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > On Sat, Aug 30, 2008 at 5:22 PM, Daniel Hofstetter <[EMAIL PROTECTED]> wrote: > > > Hi, > > >> I'm new to cake php I was just looking for a Small CMS made in cakePHP. > >> Can > >> you guys Please Help me in Finding the CMS. > >> The CMS should be small and also very easy to hack the code. > > > Have a look at NeutrinoCMS (http://dsi.vozibrale.com/) or WildFlower > > (http://wf.klevo.sk/), maybe they are useful for you. > I tried to use wildflower but its not responding so need to do some hacking there. > http://ovencms.tarkvaratehas.ee/ > > Stumbled across this yesterday - they claim to be GPL but want users > to registers so did not really bother - but the feature set looks good > I registered with them but I'm not able to get a single link to download it. > Cheers > Tarique > > -- > = > Cheesecake-Photoblog:http://cheesecake-photoblog.org > PHP for E-Biz:http://sanisoft.com > = --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
it would be helpfull if you could post the solution
I read the manual and the ibm code and they are the same. How did you solve the problem ? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Acl and Auth
Having the same problem, found that in order to get things working best bet is using cake built in scaffold as it takes cake of all the associations. when everything is working then you can cade stuff yourself. Also for ur group model try using the example found here: http://aranworld.com/article/170/cakephp-acl-and-auth-sample-website download the sampel site and use the group model. hope it helps. cheers On Aug 29, 11:33 am, luigi7up <[EMAIL PROTECTED]> wrote: > Auth and acl? > > After 4-5 days of trying I finnaly give up :( > > I've read and followed about 6-7 tutorials about making user/group > permissions in Cake and they all have something in common: they > suck... Don't want offend anyone but it true... > > They all have different approach and that's confusing, they all skip > registration part of user which is silly because that's where > user.group.id is set and they all take some things for granted. > > So, after losing hope I decided to post my code and database tables > entries to someone who really understands how this component works. > > I want to have groups of users: All/Memebers/Admins. newly registered > users are in Members group by setting group_id=2. I want to restrict > access to controller/actions for some groups and not users directly. > As you will see I've put var $actsAs = array('Acl'); in my USER and > GROUP models to behave like ACL. > > ** > > USERS MODEL: > > uses('Sanitize'); > class User extends AppModel { > > var $name = 'User'; > > var $actsAs = array('Acl'); > > var $belongsTo = array('Group'); > > function parentNode(){ > if (!$this->id) { > return null; > } > > $data = $this->read(); > > if (!$data['User']['group_id']){ > return null; > } else { > return array('model' => 'Group', > 'foreign_key' => $data['User'] > ['group_id']); > } > } > > // Ok, even if the ACL behavior takes care of the insertion > of the > // corresponding ARO node, it doesn't save an alias so you > have to > // give one yourself. We'll be using the username for the > alias. > // We'll do this after a new user is saved/inserted, so do it > inside > // the model's afterSave function > function afterSave($created) { > > // Do this if the save operation was an > insertion/record creation > // and not an update operation > if($created) { > // Ah, yes... we'll be needing the Sanitize > component > $sanitize = new Sanitize(); > > // Get the id of the inserted record > $id = $this->getLastInsertID(); > > // Instantiate an ARO model that will be used > for updating > // the ARO > $aro = new Aro(); > > // I'm using updateAll() instead of > saveField() > // Instead of querying the table to get the > id of the > // ARO node that corresponds to the user, I > just provided > // two field conditions whose combination > uniquely identifies > // the node (Model=> User, Foreign Key=> User > id). > > // I don't know why it wasn't sanitizing my > input and not > // enclosing the input in quotes. I had to do > it myself > $aro->updateAll( > > array('alias'=>'\''.$sanitize->escape($this->data['User'] > ['username']).'\''), > array('Aro.model'=>'User', > 'Aro.foreign_key'=>$id) > ); > } > return true; > } > > } > > GROUP MODEL: > > uses('Sanitize'); > class Group extends AppModel { > > var $name = 'Group'; > > var $actsAs = array('Acl'); > > // Associate with the Group table > var $hasMany = array('User'); > > function parentNode(){ > if (!$this->id) { > return null; > } > > $data = $this->read(); > > if (!$data['Group']['parent_id']){ > return null; > } else { > return $data['Group']['parent_id']; > } > } > > function afterSave($crea
How to grant permissions to users based on content added to the site
Hello all, I have been using cakephp for about one year now and I am trying to build a new subscription based application using cake built in auth, and acl components. When the user register he/she is added to a group which represents the aros and each user belongs to a group. What I want to achieve is the following: #Aros: cake acl create aro root guests cake acl create aro guests members //members gets permission from guests cake acl create aro members bronze /bronze members gets its permission from members and so on... cake acl create aro bronze silver cake acl create aro silver gold cake acl create aro gold managers cake acl create aro managers admins #Acos: cake acl create aco / Root cake acl create aco Root Accounts cake acl create aco Root Users cake acl create aco Root Subscriptions cake acl create aco Root Payments cake acl create aco Root Messages cake acl create aco Root Albums cake acl create aco Root Images cake acl create aco Root Videos cake acl create aco Root Menus cake acl create aco Root Groups cake acl create aco Root Comments #Permissions: cake acl grant admins Root * // not sure if this is right I want to grant permissions in the following order: Users in the system can only can view any user profile, but can only edit their own profile (user has one profile) Managers can do almost anything, but not touch admins user accounts Admins on the other hand can do anything on the site. I got most of the system working, but I am stuck with the permissions. Also I am tryin to figure out how to makesure that content added to the site can only be deleted / modified by the user that added it. Example: A user adds a comment, but only the user which the comment belongs to can touch it or other than view it etc Same applies to other contents on the site such as images albums etc.. Hope any of you can help or if you need any more information in order to help please ask. Any help is kind appreciated Many thanks in advance --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
is cake reduntant ?
I mean, it can easily be replace by a graphical point and click software to reproduce the scaffolding without wasting time on all those pesky writing of code which is inhumanly unfriendly best done by a dumb computer. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Parse error help!
can help by posting your solution ? I am having the same problem and compare the manual and the ibm solutioin and they are the same. On 12 Aug, 05:53, heliumdream <[EMAIL PROTECTED]> wrote: > Alrighty, I'm trying to follow the ibm tutorial on coding withcakephp...and > I'm encountering this error. > > Parse error: syntax error, unexpected ',' in D:\xampp\htdocs\www > \cake_ibm\app\models\product.php online7 > > [code] > >class Product extends AppModel > { > var $name = 'Product'; > var $belongsTo = array ('Dealer' => array( > 'className' => 'Dealer', > 'conditions'=>, > 'order'=>, > 'foreignKey'=>'dealer_id') > ); > } > ?> > > [/code] > > I'm attempting page 3 of part 2 of the ibm demo, if that helps...it is > attempting to use scaffolding to fill out the rest of the site... > > Thanks in advance for any insight! --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
cannot get ibm tutorial part 2 var belongto work ! anyone done this tutoral before ??
Parse error: syntax error, unexpected ',' ip\models\dealer.php on line 7 array( 'className' => 'Dealer', 'foreignKey'=>'dealer_id' ) ); } ?> --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Any Good CakePHP Development Firms?
I'm looking for a really good CakePHP firm to help refactor a website built by some developers who did not know how to use the framework properly. Given that CakePHP is relatively new and there is no certification, it's very difficult to find and determine if anyone or any firm is truly proficient. So recommendations are appreciated. Thanks --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
saveAll with 'validate' => 'first' has problems
Here is the scenario- I am using the latest cakephp v1.2 branch dated 30-08-08. Lets say we have 1 model- 'Profile' with the following 'validate' array defined in the model- var $validate = array( 'dob' => array( 'validDate' => array( 'rule' => 'validDate', 'message' => 'Please select a valid DOB' ), 'isAdult' => array( 'rule' => array('isAdult',18), 'message' => 'You must be over 18' ) ) ); where 'validDate' is a custom validation function defined in AppModel. Now, if I try saving this data- $data = array( 'Profile' => array ( 'firstname' => 'user_desc' => chgfb dtgftgf 'country_id' => 119 'city' => delhi 'zip' => 110092 'submitted' => 'id' => 4 'address' => ahsg 'user_id' => 278 ) ) with the following call- $return = $this->Profile->saveAll($this->data, array('validate' => 'first')); It actually gives me a validation error on 'Profile'. If I do- var_dump($this->Profile->invalidFields()); This is what I get- array 'dob' => string 'Please select a valid DOB' (length=25) However, If I try to validate this as follows- $this->Profile->set($this->data); $this->Profile->validates(); var_dump($this->Profile->invalidFields()); I do not get any error... Problem is, that I need to use this Profile model with hasMany data and hence need saveAll. Is this a bug, or am I missing something? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Simple is Hard, talked by Rasmus Lerdorf @ FrOSCon 2008
On Aug 30, 12:41 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > On Sat, Aug 30, 2008 at 1:17 AM, Gwoo <[EMAIL PROTECTED]> wrote: > > > Since we have spent some time over the last week optimizing, I figured > > I would run some more tests. I really don't like "ab" as a utility. I > > But what was the test? > > Can we have a peek at the areas where Cake 1.2 is being looked into - > after going thru Rasmus's presentation I also did some profiling on > CakePHP and was going to look deeper over the weekend The test was of the basic dispatch/rendering cycle, i.e. the "hello world" example used by Paul M. Jones, with helpers and layout turned off, but pretty much all other production-mode defaults left in place. The areas of the framework being looked into right now are pretty much all that go into executing the benchmark test, and you'll start to see which areas are being optimized by watching the changesets as they show up in the timeline (i.e. https://trac.cakephp.org/changeset/7536). As always, if you'd like to help out, and you find a portion of the framework that could be improved, open an optimization ticket with suggestions or a patch. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Small CMS from cakephp
On Sat, Aug 30, 2008 at 5:22 PM, Daniel Hofstetter <[EMAIL PROTECTED]> wrote: > > Hi, > >> I'm new to cake php I was just looking for a Small CMS made in cakePHP. Can >> you guys Please Help me in Finding the CMS. >> The CMS should be small and also very easy to hack the code. > > Have a look at NeutrinoCMS (http://dsi.vozibrale.com/) or WildFlower > (http://wf.klevo.sk/), maybe they are useful for you. > http://ovencms.tarkvaratehas.ee/ Stumbled across this yesterday - they claim to be GPL but want users to registers so did not really bother - but the feature set looks good Cheers Tarique -- = Cheesecake-Photoblog: http://cheesecake-photoblog.org PHP for E-Biz: http://sanisoft.com = --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Small CMS from cakephp
Hi, > I'm new to cake php I was just looking for a Small CMS made in cakePHP. Can > you guys Please Help me in Finding the CMS. > The CMS should be small and also very easy to hack the code. Have a look at NeutrinoCMS (http://dsi.vozibrale.com/) or WildFlower (http://wf.klevo.sk/), maybe they are useful for you. -- Daniel Hofstetter http://cakebaker.42dh.com --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Help with AUTH/ACL :: Determining the links to show in views
any have any advice? On Aug 29, 11:21 pm, validkeys <[EMAIL PROTECTED]> wrote: > Hey Guys, > > I am reading and reading on both Auth and Acl and am getting there I > just need to have more time with it. One thing that i am trying to > understand is the following. > > If I have 2 groups of users, admins and contributors. Lets say that I > have an application with 10 tabs acrossed the top. Admin should see > all of them whilst the contributors should only see 5. The 5 tabs that > the contributors see are not always the same as it depends on the > access that I give them. > > What is a good way to use an Auth based approach to determining > whether or not a contributor can see a tab on the screen? > > Thanks! --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: email component links not including domain name
2008/8/30 Dr. Tarique Sani <[EMAIL PROTECTED]> > > On Sat, Aug 30, 2008 at 3:14 PM, Hoddy <[EMAIL PROTECTED]> wrote: > > > > > > cake ver: RC 1.20796 (latest version) > > > > Hi > > > > Has anyone noticed that links are created without the domain name when > > using them in elements for the email component? > > > > I'm using same syntax that i use elsewhere in views where the domain > > name > > appears in the link > > > > the code im using is... > > > > link('view the advert details on the website...', > > '/adverts/view/'. $Advert['id'] ); > ?> > > > > > > $html->link() will not give you a full URL > > you need to use $html->url() with the second param set as true to get > the complete URL > > I will leave it as an exercise for to you use the above two in conjunction > :) > > HTH > > Tarique > - In short, you need to do, link('view the advert details on the website...', $html->url('/adverts/view/'. $Advert['id'], true)); ?> -- Amit http://amitrb.wordpress.com/ http://coppermine-gallery.net/ http://cheesecake-photoblog.org/ http://www.sanisoft.com/blog/author/amitbadkas --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: email component links not including domain name
On Sat, Aug 30, 2008 at 3:14 PM, Hoddy <[EMAIL PROTECTED]> wrote: > > > cake ver: RC 1.20796 (latest version) > > Hi > > Has anyone noticed that links are created without the domain name when > using them in elements for the email component? > > I'm using same syntax that i use elsewhere in views where the domain > name > appears in the link > > the code im using is... > > link('view the advert details on the website...', > '/adverts/view/'. $Advert['id'] ); ?> > > $html->link() will not give you a full URL you need to use $html->url() with the second param set as true to get the complete URL I will leave it as an exercise for to you use the above two in conjunction :) HTH Tarique -- = Cheesecake-Photoblog: http://cheesecake-photoblog.org PHP for E-Biz: http://sanisoft.com = --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Small CMS from cakephp
Hello Friends, I'm new to cake php I was just looking for a Small CMS made in cakePHP. Can you guys Please Help me in Finding the CMS. The CMS should be small and also very easy to hack the code. please help me. thank you --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
email component links not including domain name
cake ver: RC 1.20796 (latest version) Hi Has anyone noticed that links are created without the domain name when using them in elements for the email component? I'm using same syntax that i use elsewhere in views where the domain name appears in the link the code im using is... link('view the advert details on the website...', '/adverts/view/'. $Advert['id'] ); ?> which renders the link as ... http://adverts/view/1 I have hard coded the link in the element to get round this, but it either looks like a bug in the component or that im doing something stupid Anyone seen similar ? thanks in advance Chris --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Calling ajax with requireAuth
Hi. I am using the security component against CSRF, and I am also using Ajax. I see others have had the same problem I have. I have added the security component in the app_controler. Then in one of my controllers I use this code: $this->Security->requireAuth('add', 'add_streams'); The add action makes ajax calls, however when security enabled the calls do not work. I added this in order to see if it worked: $this->Security->allowedActions = array('ajax_cantons', 'ajax_districts'); But it also does not work. I see there people that had the same problem and I found this solution: https://trac.cakephp.org/changeset/6301#file0 However this solution is not anymore in the subversion repository: https://trac.cakephp.org/log/branches/1.2.x.x/cake/libs/controller/components/security.php Does someone know how to solve this? Am I doing something wrong? Best regards, B. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Unable to read $this->session() in AppController when using Admin Routes
On 8/29/08, Jaime <[EMAIL PROTECTED]> wrote: > > Weird: it only happens when Routing.admin is set to 'admin'. When I > change it, everything works perfectlly. > > On 29 ago, 13:13, Jaime <[EMAIL PROTECTED]> wrote: >> I've been dealing with this for two days; hope it's not a lame >> question. On 1.2.0.7296 (RC2) I set "Configure::write('Routing.admin', >> 'admin')" in core.php, and my app_controller.php looks like this: >> >> class AppController extends Controller { >> function beforeFilter() { >> die(pr($this->Session->read())); >> } >> >> } >> >> My $this->Auth->userModel is 'Login'. >> >> Now when I log in as a valid user (I'm using Acl + Auth) and go to / >> news I get, as expected: >> >> /news/index: >> Array ( >> [Config] => Array ( ... ) >> [Message] => Array ( ... ) >> [Auth] => Array ( >> [Login] => Array ( **LOGGED USER DATA** ) >> ) >> ) >> >> But when using admin prefix (/admin/news/index), the logged-in user >> data is not shown (probably overwritten by redirect info): >> >> Array ( >> [Config] => Array ( ... ) >> [Message] => Array ( ... ) >> [Auth] => Array ( >> [redirect] => /admin/news/index >> ) >> ) >> >> Because of this I cannot use admin routes (I have no loggin info). >> After deep debugging and searching everywhere, I just cannot figure >> out the solution :-( >> >> Any ideas? > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
HttpOnly support in Cookies to help prevent XSS
Anyone thought about adding HttpOnly support to the CookieComponent to help reduce possible XSS attacks? http://us.php.net/setcookie While it would be easy to add this to the CookieComponent on my local install, would this severely impact any other functionality? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---