Re: PHP IDE

2014-03-02 Thread Tilen Majerle
phpDesigner ᐧ -- Lep pozdrav, Tilen Majerle http://majerle.eu 2014-03-02 10:08 GMT+01:00 Thomas von Hassel : > Tangentially related to CakePHP, but what IDE (if any) are you guys using > these days ? > > /thomas > > -- > Like Us on FaceBook https://www.facebook.com

Re: Is it possible to create a plugin inside a plugin with CakePHP?

2013-09-15 Thread Tilen Majerle
No. -- Lep pozdrav, Tilen Majerle http://majerle.eu 2013/9/13 aram harutyunyan > Hi > Is it possible to create a plugin inside a plugin with CakePHP? > > -- > Like Us on FaceBook https://www.facebook.com/CakePHP > Find us on Twitter http://twitter.com/CakePHP > >

Re: Email Header Issue

2013-08-25 Thread Tilen Majerle
And you are talking to who? ;) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2013/8/25 Vanja Dizdarević > A few possibilities to check: > > - Your domain's A records, MX records, SPF records (must be in order) > - Check if the target server bounces an admin notice back to

Re: Download link

2013-08-06 Thread Tilen Majerle
Check for media view in cake book Dne 6. avg. 2013 15:43 je "raj kumar Pustela" napisal/-a: > Hi to all, > > >how to create download link on website in cakephp 2.0 >pls help me > > Thanks > Rajakumar.P > > -- > Like Us on FaceBook https://www.facebook.com/CakePHP > Find us on Twitter

Re: Best practice for Helpers

2013-07-16 Thread Tilen Majerle
Second way. Because you can modify returned data before print/echo. -- Lep pozdrav, Tilen Majerle http://majerle.eu 2013/7/16 David Suna > As a best practice, should a helper output content or return the content > to the View? > > In other words, should the call to the helper

Re: override __()

2013-03-13 Thread Tilen Majerle
If you overwrite it in basics.php then you will always ovewrite it when you update cakephp -- Lep pozdrav, Tilen Majerle http://majerle.eu 2013/3/13 onur > is there any way to override __() in basics php ? > > > -- > Like Us on FaceBook https://www.facebook.com/CakePHP >

Re: How to start cakephp learning?

2013-03-04 Thread Tilen Majerle
start reading book.cakephp.org :) It's the best for beginners. There are some examples too :) Good luck -- Lep pozdrav, Tilen Majerle http://majerle.eu 2013/3/4 Nematullah Atef > Dear All, > > hope all is fine, > > recently i start working in Cakephp how can i do to

Re: beforeValidate can't modify my data

2013-02-27 Thread Tilen Majerle
pe it helps and if you have more fields than 2, you can make for loop and inside for just change this "zero" to 1, 2, 3, 4, 5... how many fields you have. Have fun! -- Lep pozdrav, Tilen Majerle http://majerle.eu 2013/2/28 kicaj > I create form with many fields and fields for up

Re: Extend Paginator maxlimit to more than 100

2013-01-11 Thread Tilen Majerle
I think is paginate name for property, not paginator Dne 11. jan. 2013 11:15 je "Sam" napisal/-a: > Dear CakePHP experts, > > The default maxLimit for Paginator component is 100. For some reason, I > would like to extend it to 1000 to all my controllers. What I did was to > add the following code

Re: Missing View

2012-11-30 Thread Tilen Majerle
make sure, that file below exists: C:\wamp\www\cakephp\app\View\User\index.ctp -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/11/30 the beginner > hello. > > im new here. > somebody can tell me what should i do to overcome this error : > > *Error: *The view fo

Re: How to hide "img" folder?

2012-11-17 Thread Tilen Majerle
Put this in htaccess: Options -Indexes If it's not good, make index.html file so it will open this file if someone add '/img' to the link.. -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/11/17 Daniel > On my server space I have my "img" folder in the

Re: delete image "file" in server from controller

2012-11-12 Thread Tilen Majerle
$group['Group']['id']-$group['Group']['photo_secret'] here is problem... try this $file = new File(WWW_ROOT ."/img/group-banners/banner/" . $group['Group']['id'] . "-" . $group['Group']['photo_

Re: tag in a form textarea...?

2012-11-06 Thread Tilen Majerle
i don't know if i understand you good, so i hope this is was you need: use nl2br(); function when you print code -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/11/6 Chris > hi guys,... I'm using cake 1.3,... how can I add tags in a > form textarea so it can count

Re: cakephp with jquery datatable

2012-11-02 Thread Tilen Majerle
what..if you want to use datatables, than do not use pagination in cake -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/11/1 Panda Taruma > iI am using jquery datatable. successfully .. > but the data show a maximum of 100 rows.. anybody can share to me?? > > -- > Like

Re: JQuery save success/error

2012-10-31 Thread Tilen Majerle
render your template with $this->render(); and pass variables to it, than here just print json_encode($variable); :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/10/31 Jeremy Burns | Class Outfit > Completely - but how do I render the element as json? As soon as I do > $thi

Re: JQuery save success/error

2012-10-31 Thread Tilen Majerle
in controller for errors and print it..understand ? -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/10/31 Jeremy Burns > Not an expert at jQuery, but getting there. > > I'm submitting data to a controller function that saves a record via ajax. > If the save works, I'm

Re: How to?

2012-10-31 Thread Tilen Majerle
you need to change incldue path look at book.cakephp.com and if i'm right you want to "hide" files from public so nobody can see them. That's why cake uses .htaccess files ;) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/10/31 Piotr Beschel > How to move cake

Re: Image resize - crop -

2012-10-28 Thread Tilen Majerle
http://edapx.com/2012/08/14/crop-and-resize-images-in-cakephp/ something like this? -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/10/28 Piotr Beschel > Hello Bakers, > I'm looking for Image crop resize helper + component for cakephp 2.X. > > > -- > Li

Re: Error to load a third Libs

2012-10-16 Thread Tilen Majerle
your file is .class ??..and tell us which cake u use -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/10/16 Lucas Simon Rodrigues Magalhaes > Hiii, good morning! > > I have a erro when I try load a third Lib in my controller. > > The code: > > App::uses('html

Re: Delete Foreign Key

2012-10-12 Thread Tilen Majerle
i don't understand what u want.. -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/10/12 cosinusweb > Hello, > > I' ve a table "recharge" which contain an id field from an other table. > > When I try to delete the linked id from mysql it does not work w

Re: forn create with ID

2012-10-03 Thread Tilen Majerle
use "url" key in array list for FormHelper::create() method and create url u like with cake's paths :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/10/3 Chris > hi guys,... > I want to create Form to submit in action 'compose' with "ID" >

Re: photo_show.php helper

2012-09-30 Thread Tilen Majerle
i think it should be $this->PhotoShow or $PhotoShow..i'm not sure :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/9/30 Ivan Rimac > Html->link($this->photoShow->thumb($user_obj), > '/photos/index/' . $user_obj['User']['username'

Re: function beforeFilter

2012-09-26 Thread Tilen Majerle
if($this->Session->check('user')) $this->user = $this->Session->read('user'); if(!$this->is_user()) if u use Auth Component...than this will not work 4 sure...:) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/9/26 Jeremy Burns | Class Ou

Re: 2.0 "book" is wrong for "afterFind" callback

2012-09-23 Thread Tilen Majerle
t;dateFormatAfterFind($val['Event']['begindate']); } } return $results;} This code works, if you have "all" type for search, if you use "first", it will not work.. -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/9/23 d6games > The 2.0 book documentation for

Re: How to use order by field in pagination.

2012-09-22 Thread Tilen Majerle
you need than create your custom pagination process...cake's pagination system will not help you :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/9/22 sathishbabu R > Thanks for great answer, > > Customizing array format is not going to complex, But here, I want > pagi

Re: How to use order by field in pagination.

2012-09-22 Thread Tilen Majerle
i hope i understand you good, but pagination is created for records from database..for ordering arrays and stuff like that use Set (in new version is Hash) class from cake :) http://book.cakephp.org/2.0/en/core-utility-libraries/hash.html -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/9

Re: CakeDC Tags Plugin - recursive problem

2012-09-22 Thread Tilen Majerle
it's $actsAs ... you forgot "s" :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/9/22 Jono Austin > It's a behaviour and is integrated via $actAs - unless I am missing a step? > > > On 22 Sep, 2012, at 7:05 PM, "Dr. Tarique Sani" > wrote:

Re: Pagination Limit Default Global AppController CakePHP 2.x

2012-09-13 Thread Tilen Majerle
and ? it's not working ? -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/9/13 TonyCharlotteCakePHP > Is it possible to set or change the limit of pagination globally for all > controllers? > > I've tried adding the below to the AppController: > >

Re: Formatting paginator question

2012-09-13 Thread Tilen Majerle
e cho $this->Paginator->prev('', array('escape'=>false, 'tag'=>'li')); -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/9/13 heohni > cho $this->Paginator->prev('', array('escape'=>false, > 'ta

Re: Fatal Error on call to '$this->Session->setFlash'

2012-09-13 Thread Tilen Majerle
AppController extends "Controller" class...and in this class it was automatically added this component. -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/9/13 McScreech > Thank you very much, I had forgot to include the Session component. > > I haven't begun a

Re: Fatal Error on call to '$this->Session->setFlash'

2012-09-13 Thread Tilen Majerle
first..your controller should extends AppController, than make sure SessionComponent in included in your component list :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/9/13 McScreech > G'day, > > I do not understand how I induced this error: > 'Error: Cal

Re: Post?cakephp in the URL

2012-09-11 Thread Tilen Majerle
the fuck..switched what ?? " when the hosting company switched to 5.0 " ?? -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/9/11 damanlovett > I have an old application that is using Cakephp 1.3, it appears that the > app has been producing blank pages when the hosting com

Re: create a link to download file

2012-09-11 Thread Tilen Majerle
but if you're on cake 2.x you need to use $this->viewClass instead of $this->view -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/9/11 Yasir Arafat Hasib > Hello > > Check the link i think this will help you > > http://arafats.info/cakephp-download-me &

Re: Cake url

2012-09-08 Thread Tilen Majerle
try to print_r($this->params); and you will see that you need to use other, not "url" key :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/9/8 girl > I have such a code: > > $dif=$game['Game']['difficulty']; > echo "Number of experim

Re: Upload a flat file into related tables

2012-09-07 Thread Tilen Majerle
if you need to call from model, than use Model::find() method in your controller probably you will need to use "find" associated with "count" type, so check this: http://book.cakephp.org/2.0/en/models/retrieving-your-data.html#find-count -- Lep pozdrav, Tilen Majerle http://

Re: Cake2 - Bake - Windows

2012-09-04 Thread Tilen Majerle
Like you said..you need to edit system paths :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/9/4 Eduardo Arruda > Hello guys, > > First of all I'm having trouble to baking on Cake2. > > I opened this topic to learn the "how to". > > So, What I nee

Re: login

2012-08-21 Thread Tilen Majerle
or do like Greg said...good option :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/8/21 Greg Skerman > no real need for ACL, or 2 seperate tables that I can see. > > Add a field to users called "role" > > then use isAuthorized() to allow access to the admin se

Re: login

2012-08-21 Thread Tilen Majerle
i think, you need this ( http://book.cakephp.org/2.0/en/tutorials-and-examples/simple-acl-controlled-application/simple-acl-controlled-application.html ) and not 2 tables and all.. -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/8/21 raj kumar Pustela > hi to all, >

Re: How to access base model functions from a related behavior model

2012-08-20 Thread Tilen Majerle
t; -- > 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. > Visit this group at http:/

Re: How to access base model functions from a related behavior model

2012-08-20 Thread Tilen Majerle
if you have associated Topic and TopicTree, than you can access in controller with $this->TopicTree->Topic, if you don't have accociated this 2 models, than you can use $this->loadModel('Topic'); in your controller, and then $this->Topic->myFunction(); -- L

Re: rendering view from a different controller

2012-08-13 Thread Tilen Majerle
i think that is not possible...try with elements -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/8/13 Jim Bracewell > My aim is to retrieve the html of a view without user interaction > (basically just call a function that returns the html that is generated for > a specific

Re: rendering view from a different controller

2012-08-13 Thread Tilen Majerle
can you please describe your problem more ? :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/8/13 Jim Bracewell > I am having a problem trying to call render on views from two seperate > controllers and retrieve the html automatically to the original function. > I tried $thi

Re: Whats wrong?

2012-08-13 Thread Tilen Majerle
$this->Weeklyroster->id = $week; you must replace 'week' with 'id' :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/8/13 mohit kumar > $this->Weeklyroster->week = $week; -- You received this message because you are subscribed to the Google Group

Re: Best Practice to display data in layout or view

2012-08-11 Thread Tilen Majerle
i'm using second option. Model can be created with ClassRegistry::init('ModelName'); to get model instance :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/8/11 sanjeev > Hello, > > What is the best practice to display data e.g. list of products, events,

Re: gebo admin template

2012-08-10 Thread Tilen Majerle
and what ? we can now find this template or what ? omg.. -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/8/9 Rahul > Hi, > > I am looking for some help to setup gebo admin template for my project, > please share any useful links/info . > > gebo admin template is the

Re: PHP Code in Database

2012-08-10 Thread Tilen Majerle
ok, i understand... allow user to write some idk, php code, save it in database and than use php's eval. http://si2.php.net/manual/en/function.eval.php eval will execute code :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/8/10 Sanjeev Divekar > No it's not cache. I wa

Re: PHP Code in Database

2012-08-10 Thread Tilen Majerle
it sound's like you cache some view. Why you don't just use Cache by cakephp ? http://book.cakephp.org/2.0/en/core-libraries/caching.html -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/8/10 sanjeev > Hello, > > I am developing CMS which need to execute some php code e

Re: Need Help

2012-08-10 Thread Tilen Majerle
i'm not understanding you well, describe more about your problem.. -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/8/10 mohit kumar > Any idea guys? > > *With Best Regards, > Mohit Kumar <http://kumarmohit.com>* > *+91-9582894570* > > > > On Thu

Re: Recursive Retrieval of Data.

2012-08-09 Thread Tilen Majerle
book.cakephp.org => Models => Retrieving your data... -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/8/9 mohit kumar > Is it possible to retrieve data recursively for related models. > For example, > I have a table with Roster, which has Shifts and each shift has several

Re:

2012-08-09 Thread Tilen Majerle
http://book.cakephp.org/2.0/en/installation.html -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/8/8 vikram sharma > Hello > Any body Suggest me to easy way installation of cake php > > > -- > You received this message because you are subscribed to the Google

Re: Problem encountered: about passing multiple paramters from view (html helper: link) to an action ($arg1 = null, $arg2 = null) that the passed parameter became empty & null strings

2012-08-09 Thread Tilen Majerle
if you want to fetch like this, try this Html->link($this->Andante->fetchLanguage('aside_addasfriend', $opt_as), array('controller' => 'relationships', 'action' => 'addfriend', $current_user['id'], $user_data['

Re: Fat CakePHP

2012-08-07 Thread Tilen Majerle
you cannot "strip-down" nothing.. -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/8/7 sanjeev > Hello Everybody, > > I have developed CMS in CakePHP but Size of CakePHP installation is too > high. Any idea how to stripped-down CakePHP installation (in terms of fil

Re: Big Problem theme!! Please Help

2012-08-06 Thread Tilen Majerle
probably because of cache :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/8/6 Serkan Sipahi > thnx, it works :) i have a question, i get this strange problem sometimes, > why? > > -- > *Von:* Tilen Majerle > *An:* cake-php@googlegrou

Re: Big Problem theme!! Please Help

2012-08-06 Thread Tilen Majerle
and you need to enable ThemeView in controller public $viewClass = 'Theme'; -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/8/6 Tilen Majerle > View/Themed/Frontend/Frontend/Layouts/default.ctp > > > your path is incorrect > it should be: > View/Themed/

Re: Big Problem theme!! Please Help

2012-08-06 Thread Tilen Majerle
View/Themed/Frontend/Frontend/Layouts/default.ctp your path is incorrect it should be: View/Themed/Frontend/Layouts/default.ctp -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/8/6 Serkan Sipahi > View/Themed/Frontend/Frontend/Layouts/default.ctp -- Our newest site for the commun

Re: Linking Models Together

2012-07-29 Thread Tilen Majerle
it always search for primary key, set $primaryKey variable in model to your column -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/7/29 newt_e > Hi, > > I've have two tables: > authors, has a column called id (amongst others) > books, has columns called id and autho

Re: How do I / Do I use parameters to limit the number of returned records?

2012-07-27 Thread Tilen Majerle
actually: paginate uses Model::find('all', $yourconditions); in $yourconditions you can pass all things like fields, conditions, limit, group, etc... -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/7/28 Mitchell, Kevin > Thank you, Chetan: > > That was helpful; I j

Re: How can I get the ID of a Post as its saved for the first time?

2012-07-27 Thread Tilen Majerle
$this->Post->getLastInsertID(); -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/7/27 bigjimmi > Is it possible within a Add() function to find the ID of a post just as > its written to the DB? > > Basically I'm trying to create a ACO for the post when its saved by

Re: NEED HELP

2012-07-16 Thread Tilen Majerle
this is group for help, but you have to corrent describe your problem, give us your details (cake version, php version, server type, problem) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/7/16 Lboogie > Are you able to help or not...isn't this what is group for? Excuse me

Re: how to display two different views on a single layout?

2012-07-16 Thread Tilen Majerle
Like "MarcoArruda" said...use elements or more describe your problem.. -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/7/16 MarcoArruda > What are you trying to do? > Maybe there's another way to solve this.. > Did you try using elements? > > Em segu

Re: Firefox versions

2012-07-13 Thread Tilen Majerle
this is not corrent, do this: $this->data = $this->ProductGroup->find('first', array($this->modelClass . ".{$slug}" => $id)); -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/7/13 astralravenko > $this->data = $this->ProductGroup->fin

Re: How to build a category-subcategory menu?

2012-07-13 Thread Tilen Majerle
this code is for cake TO 1.2. This code will fail on newer versions of cake -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/7/13 Ain Devonshire > can you translate this to english?what is maak? > > > On Saturday, June 9, 2007 5:01:29 PM UTC+8, Watcher wrote: >> >

Re: Nested Menu in Cake 2.x

2012-07-13 Thread Tilen Majerle
you can use Tree Behavior to properly nested menu items, then use Model::find('threaded'); and you will get nested array, then just recursively go through all array and make html output with ul and li. Then use css or jQuery for nice user display (Mootools, etc..) -- Lep pozdrav, Til

Re: Bad Redirect with auth component.

2012-07-11 Thread Tilen Majerle
'loginRedirect'=> array('controller'=>'users','controller'=>'edit' ), 'logoutRedirect'=> array('controller'=>'users','controller'=>'logout' ) you have twice 'controll

Re: Is there a way to read the "VIEWS" folder using the Folder utility?

2012-07-09 Thread Tilen Majerle
you get any errors ? App::uses('Folder', 'Utility'); $folder = new Folder(APP . 'View' . DS . 'Pages' . DS); $readed = $folder->read(); -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/7/9 Shahruk Khan > $Folder = new Folder('');

Re: cakePhp router::connect with couple values

2012-07-09 Thread Tilen Majerle
Router::connect('/*', array('controller' => 'users', 'action' => 'view')); i think you need to add this at the bottom, buuut this roule is not valid if i'm right Router::connect('/*/profil/*', array('controller' =&

Re: How to use Plugin's Elements where elements has subfolders?

2012-07-06 Thread Tilen Majerle
your path structure is incorrect, PluginName failed after "Plugin" and before "View" And second Try this: $this->element('Think.sub\subOne'); -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/7/6 LiveJin > The error log:*Element Not Found: Elements\su

Re: syntax error, unexpected T_CLASS

2012-07-02 Thread Tilen Majerle
http://majerle.eu 2012/7/3 David Lozzi > Hi There, > > I'm new to PHP. I installed PHP/MySql using Xampp. I downloaded CakePHP > into a directory called caketest. When I land on the home page I get two > red issues around security (blog tutorial said that's optional), all green > except for da

Re: AuthComponent, set userScope in appController

2012-07-02 Thread Tilen Majerle
because this is php error you can not use methods/functions when declaring properties in class use this in AppController: public function beforeFilter() { parent::beforeFilter(); $this->Auth->userScope = Configure::read('User.ACTIVE'); } -- Lep pozdrav, Tilen Majerle h

Re: Redirect to Different Action in If Statement

2012-06-28 Thread Tilen Majerle
in your controller $this->redirect(array('action' => 'view')); -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/6/28 kwixson > How do I redirect a user from the index action to the view action if the > user has a particular role (i.e., member, as opposed t

Re: saveAssociated with hasOne creates new entries instead of updating

2012-06-28 Thread Tilen Majerle
Form->input('UserProfile.id'); ?> try add this line :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/6/28 cronet > Form->input('User.id'); ?> -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out

Re: Unknown column 'Login.id' in 'field list'

2012-06-22 Thread Tilen Majerle
$var = $this->Login->find('list', array('fields'=>array('Category', 'Category'), 'conditions'=>array('Login.username'=>$dbuser['Login'][' username']))); or disable primary key

Re: Using a plugin behaviour

2012-06-19 Thread Tilen Majerle
you need to activate plugin CakePlugin::load('Utils'); -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/6/19 Jeremy Burns > I'm just breaking my way into CakePHP 2. I'm trying to attach the > SluggableBehavior from the CakeDC Utils Plugin to a model and am reall

Re: Associate an array with a variable ?

2012-06-18 Thread Tilen Majerle
before you call $this->paginate('Post') do this $this->paginate = array('Post' => array('conditions => array('User.id' => $id))); -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/6/18 JonStark > Here is the function I use to displa

Re: Cookie not saving and I can't view cookies in IE8

2012-06-17 Thread Tilen Majerle
$this->Cookie->time = '365 Days'; you missed "+" so $this->Cookie->time = '+365 Days'; -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/6/17 Daniel > $this->Cookie->time = '365 Days'; -- Our newest site for the community:

Re: Access $this->Session from a model

2012-06-14 Thread Tilen Majerle
CakeSession should be used as static, like CakeSession::read(), ::write(), and so on, like below App::import('Model', 'CakeSession'); CakeSession::yourmethod(); -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/6/14 Umashankar Pandey > App::import('Model',

Re: Best way to implement a follower system (like Twitter) ?

2012-06-12 Thread Tilen Majerle
if is problem only with deleting of habtm...check this then http://book.cakephp.org/2.0/en/models/associations-linking-models-together.html#hasandbelongstomany-habtm and look at 'unique' key in habtm relationship :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/6/12 ce

Re: Loginform without formhelper

2012-06-11 Thread Tilen Majerle
HP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. > > > 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 > --

Re: Manage large multilingual project

2012-06-09 Thread Tilen Majerle
if i understand you good you need to translate large part of files... use Poedit program and use this tutorial to set up for searching in files http://planetcakephp.org/aggregator/items/2411-internationalization-and-localization-in-cakephp -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012

Re: how to validate a page

2012-06-08 Thread Tilen Majerle
can u describe your problem more clear please :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/6/8 georgio ch > How can i validate a page inside default layout so that when i change > page the default content must change or stay the same depends the > page i am clicking >

Re: afterFind is weird with associations

2012-06-05 Thread Tilen Majerle
ok, tell us if you will still have problems :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/6/5 Benjamin Allison > How did i miss that?! I think that's the right answer. > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org

Re: afterFind is weird with associations

2012-06-05 Thread Tilen Majerle
nt PS: if I don't understand you correctly, soory :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/6/5 Benjamin Allison > So afterFind works fine and dandy when I'm within the corresponding > model/controller. However, when calling an *associated* model, the data > s

Re: Notice: Constant CAKE_CORE_INCLUDE_PATH already defined in

2012-06-02 Thread Tilen Majerle
do you manually define it in app/webroot/index.php? -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/6/2 Miles J > Search and find out where its being defined twice. > > > On Saturday, June 2, 2012 8:55:14 AM UTC-7, alvin567 wrote: >> >> Notice: Constant CAKE_C

Re: Table 'cakehr.cake_errors' doesn't exists

2012-05-19 Thread Tilen Majerle
Table 'test.cake_errors' doesn't exist -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/5/19 Florin Trifu > Table 'test.cake_errors' doesn't exist -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out th

Re: $this->Params['controller'] doesn't work in cakephp component

2012-05-02 Thread Tilen Majerle
in your __construct() method for component, first parameter is ComponentCollection $collection object. >From here you can store controller to component like $this->Controller = $collection->getController(); then params you have in $this->Controller->params -- Lep pozdrav, Til

Re: Need help in Ajax

2012-05-01 Thread Tilen Majerle
which cake version ?? $ajax is helper, if you use Cake 2, than use $this->Ajax instead -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/5/1 Ankit Patel > > > >link( > 'Response will be add at the top of selected element', > array( 'controll

Re: problem

2012-04-30 Thread Tilen Majerle
does folder "cakephp" in your webroot exists ?? if u use xampp for linux, then default webroot is "htdocs" folder inside xampp, check there.. -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/4/30 darryl bautista > hi, i have a problem with my apache2, when i

Re: Hashing Password in CakePHP 2.1

2012-04-29 Thread Tilen Majerle
you got this error because key 'password' didn't exists :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/4/29 Charles Blackwell > $this->data['User']['password'] > -- Our newest site for the community: CakePHP Video Tutorials http

Re: Hashing Password in CakePHP 2.1

2012-04-29 Thread Tilen Majerle
Yep...cake's book says that you should there hash password :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/4/29 Tilen Majerle > only PHP basics :) > > public function beforeSave() > { > if (isset($this->data['User']['password'

Re: Hashing Password in CakePHP 2.1

2012-04-29 Thread Tilen Majerle
only PHP basics :) public function beforeSave() { if (isset($this->data['User']['password'])) { $this->data['User']['password'] = AuthComponent::password($this->data['User']['password']); } return true; }

Re: CakePHP support

2012-04-29 Thread Tilen Majerle
Every hosting site should support CakePHP :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/4/29 zer0_gravity > Could you recommend a few good web hosting site that support CakePHP? > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.

Re: Progress bar for file uploads

2012-04-16 Thread Tilen Majerle
use uploadify -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/4/16 bs28723 > Anyone know of a good progress bar for file uploads? > > Don't need anything fancy, just something that gives users visual > feedback that the large image file they are uploading is taki

Re: JSON response!

2012-04-14 Thread Tilen Majerle
you have to set view to json public $viewClass = 'Json'; something like that :) read manual again :D -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/4/14 Serkan Sipahi > Hi all, > > I want to create a JSON response! Scripting my file according to the > manuel: h

Re: Undefined index error in controller

2012-04-05 Thread Tilen Majerle
ur cake version is ? and instead of this Form->create('Image', array('enctype' => 'multipart/ form-data')); ?> use Form->create('Image', array('type' => 'file')); ?> and in your controller simply debug $this->

Re: Tiny Mce Cake php 2 error

2012-03-29 Thread Tilen Majerle
tell us ur error and version u're using for tinymce and cakephp (all, not just "2") -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/3/29 Raj > Hi Guys, > > I am integrating tiny mce editor using cake php 2. > > I got error using this plugin http://cak

Re: find value in array and unset it

2012-03-18 Thread Tilen Majerle
just don't use array_values in foreach and should work -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/3/18 luftlinie > hi everyone, > > i have an array "$book['BookAttachment']" like this: > == > > Array > ( &g

Re: Element rendering plugin view

2012-03-16 Thread Tilen Majerle
http://book.cakephp.org/2.0/en/views.html#elements -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/3/16  Fabiano > I'm using User Management Plugin. > > My default layout has an element that I wanna to render one plugin's > view (login.ctp). > > How can i g

Re: Models can be loaded from a component?

2012-03-11 Thread Tilen Majerle
or render is the same use $this->Controller->set(); and $this->Controller->render(); -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/3/11 romel javier gomez herrera > App::import('Model', $key); > $this->$key = new $key; > -- Our newest site for the co

Re: Models can be loaded from a component?

2012-03-11 Thread Tilen Majerle
you can load model to controller, so something like $this->Controller->loadModel('ModelName') and then you can use it with $this->Controller->ModelName->methodName(); or you ClassRegistry::init('ModelName'); to initialize a model :) -- Lep pozdrav, Tilen Maj

Re: Call to undefined function assertEquals()

2012-03-10 Thread Tilen Majerle
maybe u have to use $this->assertEquals() -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/3/10 Jordy van Kuijk > Hi all, > > I'm trying to set up some test case for my *User* model with CakePHP 2.0. > I'm following the book and wrote my first test class: > &

  1   2   3   4   5   6   >