hi guys,
Hi CRUSH, Did you get solve your problem? I have same as you! I did the
changes which Jeremy said, bt It gives error like this,
Undefined property: Album::$Music
[*APP\controllers\albums_controller.php*, line *69*]
Code
function index(){//$lists =
Ganganath, I think your controller should be musics and your view
should be music_id
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To
Jeremy,
Not working. I changed it to:
Controller
$mediaTypes = $this-Media-MediaType-find('list');
$this-set(compact('$mediaTypes'));
View
echo $this-Form-input('media_type_id');
and made the model change. Here is what it is outputting:
div class=input select
label
hi CRUSH,
i ddnt get you clearly! can u explain it! u mean my controller class and
view class should be changed as u said???
Ganganath Hettiarachchi
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site
view:::
echo $form-input('music_id', array('label' = 'Music Track'));
controller:::
$musics = $this-Album-Music-find('list');
$this-set(compact('musics'));
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site
Looks like a really big project to me, I am looking forward to read
more about your experience. I am also revamping an old and messy web
site, compared to yours, a very small one with about 30k unique visits/
month, but quite challenging anyway.
Regards
On 19 jun, 20:27, ibejohn818
You have added a $ before the variable name in the compact statement. Remove it
and replace it with exactly what I sent you.
On 20 Jun 2011, at 07:27, CRUSH wrote:
Jeremy,
Not working. I changed it to:
Controller
$mediaTypes = $this-Media-MediaType-find('list');
Nobody no clue?
On Jun 17, 5:43 pm, thomaus tho...@saimiris.com wrote:
Hi there,
I am doing 2nd order pagination using Containable. It is working fine
but when I try to paginate with a 2nd order filter, it doesn't work
anymore.
Here are my models relations :
Result belongs to Test
Test
emm...try this
$filter = array();
$filter['Nationality.language_id LIKE'] = 2;
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2011/6/20 thomaus tho...@saimiris.com
Nobody no clue?
On Jun 17, 5:43 pm, thomaus tho...@saimiris.com wrote:
Hi there,
I am doing 2nd order pagination
https://github.com/CakeDC/Sample-Search-Application/blob/master/models/ticket.php
On Jun 19, 2:59 pm, Krissy Masters naked.cake.ba...@gmail.com
wrote:
I have read thru the docs and searched but no luck. What i am trying to do
is use a simple = comparison to a submitted value.
So my table has
These days I'm using NetBeans IDE 6.9.1 which seems OK for me to code
for any php based project (including CakePHP).
So you can try for it.
On Jun 20, 2:27 am, Robert sigz...@gmail.com wrote:
What editor or IDE do you find has the best CakePHP integration?
--
Robert
--
Our newest site for
phpDesigner is the best...!! :)
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2011/6/20 Ritesh R Aryal iamriteshar...@gmail.com
These days I'm using NetBeans IDE 6.9.1 which seems OK for me to code
for any php based project (including CakePHP).
So you can try for it.
On Jun 20, 2:27 am,
+ 1 for notepad. I love that tool. The only problem is i have to use a
special monitor to highlight the syntax
On Mon, Jun 20, 2011 at 4:32 PM, Ritesh R Aryal iamriteshar...@gmail.comwrote:
These days I'm using NetBeans IDE 6.9.1 which seems OK for me to code
for any php based project
Please stop this repetitive madness.
On 20 Jun 2011, at 10:35, Tran Cao Thai wrote:
+ 1 for notepad. I love that tool. The only problem is i have to use a
special monitor to highlight the syntax
On Mon, Jun 20, 2011 at 4:32 PM, Ritesh R Aryal iamriteshar...@gmail.com
wrote:
These days
Vim is the ultimate editor for anything :D
--
Thanks,
Bogdan Bursuc!
What editor or IDE do you find has the best CakePHP integration?
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and
eclipse PDT
Sent from my iPhone
On Jun 19, 2011, at 6:27 PM, Robert sigz...@gmail.com wrote:
What editor or IDE do you find has the best CakePHP integration?
--
Robert
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org Check out the new CakePHP
@Tran Cao Thai...hahahah :D :D :D
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2011/6/20 Tran Cao Thai jasonvoorhees...@gmail.com
+ 1 for notepad. I love that tool. The only problem is i have to use a
special monitor to highlight the syntax
On Mon, Jun 20, 2011 at 4:32 PM, Ritesh R
this day i stuck in ajax slider, how to use this???
please give some tutorial about this
the book.cakephp not enough for me
thank
regards
seiya sekata
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site
?=$this-Form-
create('Posts',array('id'='articleform','enctype'='multipart/form-
data','class'='form'));?
?=$this-Form-
input('content',array('type'='textarea','label'='Quotes'));?
?=$this-Form-
input('Author.name',array('type'='text','label'='Author'));?
Post Model
var $validate = array(
'content' = array(
'rule' = 'notEmpty',
'required' = true
)
);
add.ctp under posts/
?=$this-Form-
ok, first, why you validate 2 times?...just do
if ($this-Post-save($this-data))
it will automaticall validate your data...
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2011/6/20 prabha prabha.ridd...@gmail.com
Post Model
var $validate = array(
'content' =
or use
if ($this-Post-validates()) {
$this-Post-create();
$this-Post-save(null, false)
}
will only validate once as well and use the correct data array
(previously validated)
On 20 Jun., 12:44, Tilen Majerle tilen.maje...@gmail.com wrote:
ok, first, why you validate 2 times?...just do
Hi CRUSH, or other guys,
I want to know can I call a model from another model, like this!
$musics = $this-Album-Music-find('list');
It cause to error!
when execute a without giving Music model, it gives list of album ids.
$musics = $this-Album-Music-find('list');
what are the other thing i
Make sure your model associations are set up correctly. Your example will only
work if there is a association between Album and Music ($hasOne, $hasMany,
$belongsTo or $hasAndBelongsToMany). If the models aren't directly related or
there are models in between, you can daisy chain the models
Controller code:
$records = $this-Table-find('all', array('conditions' =
array('Table.value =' = $submitted_value)));
- Rob
On Jun 19, 8:59 am, Krissy Masters naked.cake.ba...@gmail.com
wrote:
I have read thru the docs and searched but no luck. What i am trying to do
is use a simple =
Hi friends! I've some doubts in using bindModel, my table structure
is:
users
articles
comments
i.e.
user hasMany articles
user hasMany comments
article belongsTo user
article hasMany comments
comment belongsTo article
comment belongsTo user
Could I bind the models in the following way:
I can use the core helpers from CakePHP - but I can not get my own
helper to function.
To test my helper installation I do this :
?php
/* /app/views/helpers/threadlist.php */
class ThreadlistHelper extends AppHelper {
function check()
{
return 1;
}
}
In
u should check the relation of album and music
and while $this-set(compact('musicsList'));
use this
$this-set(compact('musicsList', $musicsList));
and u will collect them in ur view
Regards
Anand
On Jun 20, 11:07 am, madusanka hettiarachchi chamikara...@gmail.com
wrote:
hi guys,
Hi CRUSH,
no mate, helpers can be used ONLY in views and components in controllers :)
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2011/6/19 jesperkp jesperkpeder...@gmail.com
I can use the core helpers from CakePHP - but I can not get my own
helper to function.
To test my helper installation I
Take the function out of your controller and place this in your view: echo
$this-Threadlist-check();
On 19 Jun 2011, at 12:31, jesperkp wrote:
I can use the core helpers from CakePHP - but I can not get my own
helper to function.
To test my helper installation I do this :
?php
/*
jesus christ
that looks awefully wild...^^
if you need sth to work both in controllers and helpers make a lib!
otherwise use a component in your controller
and if you really need to use a helper in a controller (should not be
the case)
app::import() it
On 20 Jun., 14:56, Tilen Majerle
I don't think that's correct. The compact function looks for local variables
and compacts them into variables that are sent to the view. So
$this-set(compact('musicList')); is sufficient so long as $musicList exists
when called. The idea of using compact is that you can send lots of variables
The cookbook actually asks you to have a look at your JavaScript library
documentation since it just provides a wrapper for some libraries. Have you
had a look there? What is it that you do not understand?
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
pen and paper ;-)
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
Congrats with the launch. It's amazing how fast the website is considering
the many pageviews. I personally would definitely be interested in learning
more from your experiences or is it only for the cakphp core team?
--
Our newest site for the community: CakePHP Video Tutorials
Blackboard and chalk :p
On a more serious note: I used Aptana, Dreamweaver (!), Eclipse, Netbeans
(for a short while), NotePad++ and Komodo but PhpStorm is my choice of
editor.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP
Gedit + several plugins
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
by the way:
http://www.dereuromark.de/2010/06/26/helper-component-lib/
if you need help on where use what when.
On 20 Jun., 15:02, euromark dereurom...@googlemail.com wrote:
jesus christ
that looks awefully wild...^^
if you need sth to work both in controllers and helpers make a lib!
Thanks for helping.
I just tried and that is very strange. I don't get anymore SQL error
but it doesn't work. I mean the filtering returns an empty array,
while it should not. I checked and I'm 100% sure there should be some
output after the filtering.
On Jun 20, 11:12 am, Tilen Majerle
@manja Thanks for that link
@Rob Not $records = $this-Table-find('all', array('conditions' =
question was specific, not general find condition. it's for the Search
Plugin so your answer is not related to anything the question was asking but
thanks for the effort all the same
-Original
So far, this is the code I have in my users_controller
$username = getenv('USER');
$user = $this-User-findByUsername($username);
$this-Auth-login($user);
Unfortunately I can't find a way to force home.ctp to make the user
login without removing the display line from my
I was moving a cake app to a new server and got an include error
trying to load bootstrap.ini, looking for a solution I came across
some posts in the group, none helped, so just in case here I post my
solution.
In my case the problem was the open_basedir setting in my php.ini.
The error mesage
I realise that this appears to have been covered a few times, but I
can't seem to get it to work how other people have.
I'm trying to move an existing wordpress install, to be hosted on the
same domain as my cake app.
So i've copied the root of the existing blog.mysite.com to the /blog/
under
Thank you Jeremy. Removing the dollar sign fixed it. A stupid error on
my end. I never even noticed that it was there!
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their
I use redcar. You'll need ruby installed to install redcar as a gem
but its a fantastic text editor. It's very similar to textmate, it has
lots of bundles, snippets, and all of the popular textmate themes.
On Jun 19, 6:27 pm, Robert sigz...@gmail.com wrote:
What editor or IDE do you find has the
I have a form drop down box within pagination.
When the user selects a task from the drop down i want it to update
the database table to show the current status
The problems i am having is:
1. the client id is not populating in the form
2. it changes all of the select drop down boxes when it
Thanks a lot!
I have one more doubt. How to validate this
?=$this-Form-
input('content',array('type'='textarea','label'='Quotes'));? //
This is post model
?=$this-Form-input('Tag');? // This is Tag model. How do i write
validation rule for this?
var $validate = array(
On Mon, Jun 20, 2011 at 10:10 AM, Dr. Loboto drlob...@gmail.com wrote:
Retrieve it in controller and set to view. Do it at beforeRender(),
Got it. It works well :D hehehe.. Thank you Dr Loboto :)
--
Regards,,,
mastanto (thom_)
http://mynameisthom.tumblr.com
http://mynameisthom.blogspot.com
Under Linux/Apache I did the following:
1. Created a symlink under /var/www for the blog #not under cake at all.
2. Added alias record in /etc/apache2/sites-available/yourdomai.vhost
Alias /phpmyadmin/ /usr/share/phpmyadmin/
Alias /phpmyadmin /usr/share/phpmyadmin/
On Mon, Jun 20, 2011 at 6:26
Another method is to place the blog directory in the root directory
(with, app, cake, etc) then modify the .htaccess file. A good example
is here:
http://www.techlicity.com/blog/simple-way-to-get-cakephp-to-allow-direct-access-to-files-and-directories.html
On Jun 20, 10:26 am, chris
I've solved a similar issue editing /.htaccess (cake 1.3.6)
IfModule mod_rewrite.c
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_URI} !^/blog
RewriteRule^$ app/webroot/[L]
RewriteCond %{REQUEST_URI} !^/blog
RewriteRule(.*) app/webroot/$1 [L]
/IfModule
51 matches
Mail list logo