I'm building an application that will use some stored
Semantic data and Virtuoso server is a Web/DB server and RDF data
storage.
To connect from php to Virtuoso's SQL I should use odbc_connect().
Guys, is there any chance that Cake can use Virtuoso SQL storage
as its native storage through
Hello, everyone, my question is not strictly CakePHP related but
rather more general PHP question.
Although, since I'm developing with CakePHP maybe there are
conventions how to solve the problem...
I want to have an option to dynamically include plugins or CakePHP
elements after a token has been
Hi everyone. I'm really stuck here :)
I have problem with displaying an error next to a form field of the
form that is being validated in another model.
I have two models: Products and Cart. Product_controller has VIEW
action through which I can select product variant from drop down menu
and
I have following models:
Product, ProductVariant, Cart
Product (hasMany ProductVariants )
ProductVariants (belongsTo Product Cart)
Cart (hasMany ProductVariants)
In my Product View action I have following form to add products to
Cart table with session_id as identifier of whoes products are
On Nov 28, 7:40 pm, luigi7up [EMAIL PROTECTED] wrote:
I have following models:
Product, ProductVariant, Cart
Product (hasMany ProductVariants )
ProductVariants (belongsTo Product Cart)
Cart (hasMany ProductVariants)
In my Product View action I have following form to add products to
Cart
[EMAIL PROTECTED] wrote:
luigi7up wrote:
@anja
This solution works fine but I thought I could do it more elegant :)
thanks
@grigri
I'll try this... I don't get it at first glance but I'll try it. It
seems like something worth of try...
I'll tell you how it went
P.S. Username griGri
for your precious time.
You've been most helpful :)
On Nov 21, 1:15 pm, Alexandru Ciobanu [EMAIL PROTECTED] wrote:
luigi7up wrote:
@anja
This solution works fine but I thought I could do it more elegant :)
thanks
@grigri
I'll try this... I don't get it at first glance but I'll try
Hi all,
can someone please tell me out of which session_id is made of?
I need an answer because all of my visitor add products to a cart
table and these entries must be unike for each visitor. What I mean is
if visitor A adds 4 products to a cart within 2 hours or so they all
have to be
Hello I need help with populating drop down select element.
I have following data in array $product that is available in my view
Array
(
[Product] = Array
(
[id] = 1
[product_category_id] = 1
[user_id] = 26
[title] = Nije Vuk Ovca
'
)
);
echo $form-select('variant', $options);
?
hth
grigri
On Nov 19, 10:42 am, luigi7up [EMAIL PROTECTED] wrote:
Hello I need help with populating drop down select element.
I have following data in array $product that is available in my view
Array
(
[Product
I got it!
It was so easy and automagical :)
working with cake 1.2 of course...
My route was wrong.
To make all links shop/bla/bla/ point to products/bla/bla/
add following to routes.php:
Router::connect('/shop/*', array('controller' = 'products'));
On Nov 9, 9:04 pm, luigi7up [EMAIL PROTECTED
Hi everyone,
I have a problem with routing and pagination.
I'm trying to build small catalog of products. To display all products
from xyz category I use url:
products/index/xyz
...and this works fine
I wanted my visitors to have nicer URL-s so I put:
Router::connect('/shop/*',
anyone ?
On Nov 9, 9:57 am, luigi7up [EMAIL PROTECTED] wrote:
Hi everyone,
I have a problem with routing and pagination.
I'm trying to build small catalog of products. To display all products
from xyz category I use url:
products/index/xyz
...and this works fine
I wanted my visitors
Hello everyone...
I'm little confused with defining constants in Cake.
I have a gallery of pictures that are on voting for _NUMBER_OF_HOURS
constant. In my old application that was written in pure PHP and not
Cake I had constants.php file where, all constants were defined like
this:
:
* No collisions with other php scripts.
* Can be changed at runtime
* Easy to organize, list, group and persist related settings
Benefits of using php constants:
* Less verbose
* More efficient
On Sep 26, 10:53 am, luigi7up [EMAIL PROTECTED] wrote:
Hello everyone...
I'm little
Hello everyone,
I have two models
MOTIVE var $hasMany = array('Comment');
COMMENT var $belongsTp=array('Motive');
I want to make comments on motives so I added comment() function into
Motive controller and in views/motive/view.php I added following form:
echo
Hello everyone,
I have two models
MOTIVE var $hasMany = array('Comment');
COMMENT var $belongsTp=array('Motive');
I want to make comments on motives so I added comment() function into
Motive controller and in views/motive/view.php I added following form:
echo
() redirect back
to motives_controller view() action?
Hope I've been clear :)
On Sep 11, 1:05 pm, Amit Badkas [EMAIL PROTECTED] wrote:
2008/9/11 luigi7up [EMAIL PROTECTED]
Hello everyone,
I have two models
MOTIVE var $hasMany = array('Comment');
COMMENT var $belongsTp=array('Motive
hola everyone,
while developing application something crossed my mind. What about
organizing all comments throughout application in one database table.
What I mean is this:
If application has some kind of Blog, News, picture gallery you woul
create blog_comments table, news_comments table
if there wasn't a good reason for it.
If however, luigi7up still wishes to think about his idea, I notice
that Martin Westin's approach for linking addresses to different
models was a little similar in concept and that thread might be worth
a read:http://groups.google.com/group/cake-php/msg
[modified] = 2008-09-01 15:07:48
)
[User] = Array
(
[id] = 26
[username] = luigi7up
[password] = 670a2a8ff7b5df64e8205775d4666b55
[email] = [EMAIL PROTECTED
',
array('conditions'=array('Point.user_id'=$userId, 'Point.motive_id'=
$motiveId... etc..
On Sep 4, 9:31 am, luigi7up [EMAIL PROTECTED] wrote:
Hello Im having problem with performing find function in following
scenario:
I have a voting sistem for motives in gallery. User can vote only once
Works just fine... Thanx :)
On Sep 4, 4:42 pm, luigi7up [EMAIL PROTECTED] wrote:
Thanx... I'll give it a try
On Sep 4, 4:23 pm, teknoid [EMAIL PROTECTED] wrote:
Your usage of find() is incorrect in the example: find('count'), ...
should be find('count', ...
That being said, to access
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,
My
$this-Auth-loginError ='Invalid username or password';
won't show on login.ctp view
This is what I have in app_controller:
var $components = array('Acl','Auth');
function beforeFilter(){
//Mijenja hash funkciju auth komponente iz defaultne u
Of course I haven't
thnx it works.
On Aug 27, 12:40 pm, RichardAtHome [EMAIL PROTECTED] wrote:
Have you added the code to your view to display the error?
http://book.cakephp.org/view/564/displaying-auth-error-messages
On Aug 27, 10:22 am, luigi7up [EMAIL PROTECTED] wrote:
My
I tried few great tutorials but I'll try this one too.
thanx
On Aug 25, 9:36 pm, Chris Hartjes [EMAIL PROTECTED] wrote:
On Mon, Aug 25, 2008 at 3:32 PM, luigi7up [EMAIL PROTECTED] wrote:
I found few posts about this problem but none of them resolves my
problem.
Really hard to diagnose
believe
it is a reserved keyword issue with MySQL? Not sure if it was just
related to an older version, but you might at least try changing the
column name.
-Aran
On Aug 25, 12:32 pm, luigi7up [EMAIL PROTECTED] wrote:
Ola, everyone...
//Using RC2 version of CakePHP
I'm building simple
with or without component Auth included in users_controller. Am
I wrong?
On Aug 25, 9:36 pm, Chris Hartjes [EMAIL PROTECTED] wrote:
On Mon, Aug 25, 2008 at 3:32 PM, luigi7up [EMAIL PROTECTED] wrote:
I found few posts about this problem but none of them resolves my
problem.
Really hard to diagnose
index() action
On Aug 25, 9:36 pm, Chris Hartjes [EMAIL PROTECTED] wrote:
On Mon, Aug 25, 2008 at 3:32 PM, luigi7up [EMAIL PROTECTED] wrote:
I found few posts about this problem but none of them resolves my
problem.
Really hard to diagnose without seeing any code. Have you tried
looking
Ola, everyone...
//Using RC2 version of CakePHP
I'm building simple application that allows users to write articles.
So there are their corresponding models and controllers.
Few days ago I made custom Login/register part of application that
writes username to session etc. but now I decided to
Hello everyone.
I just started to explore Cake PHP and already love it.
I'm trying to create a simple CMS. I have few questions about how to
solve some problems that came along development. I was using Joomla
for a few years so I'm used to refer some elements like pools,
latest comments, tags
32 matches
Mail list logo