hi Jeremy
I created relationship as u said and now select list displayed user's id
list.
I joined two tables called Album and User
"Album" has one "User" and "User" has many "Albums"
Album table has a field called "user_id" and it is foreign key of user
table,
here are my codes
::User Mode
www.mysite.com/blog is better for SEO purposes.
On 21 Jun 2011, at 07:12, Zaky Katalan-Ezra wrote:
> Editing the .htaccess is a good method if the files you want to directly
> access is some how part of your cake solution.
> A calculator you downloaded from somewhere and you want to add to your
Editing the .htaccess is a good method if the files you want to directly
access is some how part of your cake solution.
A calculator you downloaded from somewhere and you want to add to your app
without the need to integrate it to you cake code, for example.
But the problem here have no connection
I've solved a similar issue editing /.htaccess (cake 1.3.6)
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_URI} !^/blog
RewriteRule^$ app/webroot/[L]
RewriteCond %{REQUEST_URI} !^/blog
RewriteRule(.*) app/webroot/$1 [L]
Luca
On 20/06/2011 17:26, chris wr
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 wrote:
> I r
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 PM
On Mon, Jun 20, 2011 at 10:10 AM, Dr. Loboto 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
http://www.twitter.
Thanks a lot!
I have one more doubt. How to validate this
Form-
>input('content',array('type'=>'textarea','label'=>'Quotes'));?> //
This is post model
Form->input('Tag');?> // This is Tag model. How do i write
validation rule for this?
var $validate = array(
'content' =>
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
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 wrote:
> What editor or IDE do you find has the best CakePHP int
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 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 the
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 is
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
@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
-Origina
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 wrote:
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 wrote:
> 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
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
cake-php+unsubscr...
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 Ques
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
http://tv.cake
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
cake-php+unsubscr...@googl
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
Che
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
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 wrote:
>
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 :
>
> /* /ap
no mate, helpers can be used ONLY in views and components in controllers :)
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2011/6/19 jesperkp
> 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 :
>
> /* /ap
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
wrote:
> hi guys,
>
> Hi CRUSH, Did you get solve
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 :
Threadlist->check();
}
In my view I do :
echo "Checking for checkGetListHelper(): ". $this-
>requestAction('threads/checkGetListHelper');
Which re
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:
$th
Controller code:
$records = $this->Table->find('all', array('conditions' =>
array('Table.value >=' => $submitted_value)));
- Rob
On Jun 19, 8:59 am, "Krissy Masters"
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
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 unti
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
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 wrote:
> ok, first, why you validate 2 times?...just do
>
> if ($this->P
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
> Post Model
>
> var $validate = array(
>'content' => array(
>
Post Model
var $validate = array(
'content' => array(
'rule' => 'notEmpty',
'required' => true
)
);
add.ctp under posts/
Form-
>create('Posts',array('id'=>'articleform'
Form-
>create('Posts',array('id'=>'articleform','enctype'=>'multipart/form-
data','class'=>'form'));?>
Form-
>input('content',array('type'=>'textarea','label'=>'Quotes'));?>
Form-
>input('Author.name',array('type'=>'text','label'=>'Author'));?>
Form->input('Tag.name',array('label'=>'Tags [comma
sep
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 http://ask.cakeph
@Tran Cao Thai...hahahah :D :D :D
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2011/6/20 Tran Cao Thai
> + 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
> wrote:
>
>> Thes
eclipse PDT
Sent from my iPhone
On Jun 19, 2011, at 6:27 PM, Robert 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 Questions s
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 hel
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
> wrote:
> These days I'm using NetBeans
+ 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 wrote:
> 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 c
phpDesigner is the best...!! :)
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2011/6/20 Ritesh R Aryal
> 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 wrote:
> >
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 wrote:
> What editor or IDE do you find has the best CakePHP integration?
>
> --
> Robert
--
Our newest site for the community:
https://github.com/CakeDC/Sample-Search-Application/blob/master/models/ticket.php
On Jun 19, 2:59 pm, "Krissy Masters"
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 values of 0 - 5 if t
emm...try this
$filter = array();
$filter['Nationality.language_id LIKE'] = 2;
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2011/6/20 thomaus
> Nobody no clue?
>
> On Jun 17, 5:43 pm, thomaus wrote:
> > Hi there,
> >
> > I am doing 2nd order pagination using Containable. It is working f
Nobody no clue?
On Jun 17, 5:43 pm, thomaus 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" belo
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');
> $this->
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 wrote:
> I'm
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
50 matches
Mail list logo