Questions tagged [kostache]

Kostache is a Kohana 3 module for using Mustache templates in your application.

14 questions
0
votes
1 answer

Kostache: \n or enter key does not go to next line

I am using Kostache, Kohana and CKEditor for my website. In the database some of the tables are readonly, the content is coming from some other site. My issue is that, I need to show a new line wherever enter is given in the content. In current…
Harshala
  • 21
  • 7
0
votes
1 answer

Render php array within an array in mustache

My array "$groupData" looks like this: array(3) ( 0 => array(3) ( "id" => string(1) "2" "name" => string(20) "Super Administrators" "permissions" => array(3) ( "system" => integer 1 "superuser" =>…
Churchill
  • 1,587
  • 5
  • 27
  • 39
0
votes
1 answer

matching url to title page

Hi so how do you do it in kohana 3.3 and kostache? Form
Controller public function action_login() { $user =…
Defyleiti
  • 535
  • 1
  • 7
  • 23
0
votes
1 answer

catch always get called

I'm having problem saving data to the database since catch exception is always being called. try always get ignored. I don't really know what's happening. I've been working for this for hours and I can't get it to work. I'm using kohana 3.3 and…
Defyleiti
  • 535
  • 1
  • 7
  • 23
0
votes
1 answer

Passing errors to view

I'm using kohana 3.3 and kostache. Please help me on this one. How do you pass errors to a view. Controller public function action_add() { $renderer = Kostache_Layout::factory(); $view = new View_Pages_Album_List(); …
Defyleiti
  • 535
  • 1
  • 7
  • 23
0
votes
1 answer

Passing variables from controller to views

I'm using kohana 3.3 together with kostache. Ok how do you pass a variable from controller to class views and use it on a mustache file?.. Here's my code. Controller: public function action_update() { $layout = Kostache_Layout::factory(); …
Defyleiti
  • 535
  • 1
  • 7
  • 23
0
votes
1 answer

display results in kostache

Ok I just started kostache and I would like to display the results i got from the database using orm in kohana 3.3. I know how to display them using foreach statement but when using kostache it's way different. So here's my…
Defyleiti
  • 535
  • 1
  • 7
  • 23
0
votes
4 answers

Kohana View Model Class Not Found

I am stumped, I must be missing something basic, any ideas would be much appreciated. I have setup a new Kohana project which works fine with Models and Controllers. For this example I have stripped it right back to a single very basic Model for a…
Jon Taylor
  • 7,865
  • 5
  • 30
  • 55
0
votes
1 answer

Kohana - using kostache with handlebars

I am using kostache module in KO 3.2 - view classes, templates, everything is based on php. Is this ok, or even recommended, to install handlebars.js? Will this work properly with kostache? I would do this straight away if it wouldnt be written in…
user2124857
  • 39
  • 1
  • 1
  • 9
0
votes
1 answer

Kostache - before() method

Well, is there something like before() method in kostache module? For example, if I have a couple of PHP lines inside of the view file, I'd like to execute them separately inside of the view class, without echoing anything in the template itself.…
user2124857
  • 39
  • 1
  • 1
  • 9
0
votes
1 answer

Ko(mu)stache - multidimensional arrays

I have a table like this:
...
How can I code this with mustache?
user2124857
  • 39
  • 1
  • 1
  • 9
0
votes
1 answer

Kohana 3.3 & Kostache - Unable to display ORM Validation Errors in Form

I'm trying to create a user registration page for my site using Kohana 3.3 and Kostache as my template system. I'm having a hard time getting to work the Form Validation to display validation errors on the same page. Right now when i click on the…
user1155413
  • 169
  • 3
  • 11
0
votes
2 answers

Kohana ORM Check if user exists and returning messages to View?

I'm using Kohana 3.3 in my project and I'm trying to get the User Registration and Login working. I am using ORM's Auth and Kostache for managing my layout/templates. How do I: Check if Username already exists? If it does return to…
user1155413
  • 169
  • 3
  • 11
-1
votes
2 answers

kohana kostache partial logic

Started an project using kostache. I have made some partials like banner,navigatons and footer in my class View_Layout with extends kostache_layout . Partials work fine on each page. One problem. The navigation show always the same links. My goal…
woodle
  • 59
  • 5