My current code is this
$swift = email::connect();
$swift->setSubject('hello')
->setFrom(array('[email protected]' => 'Alex'))
->setTo(array('[email protected]' => 'Alex'))
->setBody('hello')
->attach(Swift_Attachment::fromPath(DOCROOT . 'assets/attachments/instruct...
Hi,
I am (newbie) using Kohana V 3.0.3 and my directory structure is:
pojectsys (kohana's system directory) parallel to htdocs directory
C:\xampp\pojectsys
and my application directory is in htdocs
C:\xampp\htdocs\examples
Inside C:\xampp\htdocs\examples\index.php, following variables have been set:
$application = 'C:\xampp\htdocs\...
In my bootstrap.php I have the following:
if($_SERVER['SERVER_NAME'] == 'localhost')
Kohana::$environment = 'development';
else
Kohana::$environment = 'production';
...
switch(Kohana::$environment)
{
case 'development':
$settings = array('base_url' => '/kohana/', 'index_file' => FALSE);
break;
default:...
I'm trying to convert the John Resig's Templating Engine to work with PHP.
Essentially what I would like to achieve is the ability to use certain Kohana Views via a JavaScript templating engine, that way I can use the same views for both a standard PHP request and a jQuery AJAX request.
I'm starting with the basics and would like to be...
Hi,
I am using Kohana 3.0.3.
I have been searching Auth module without ORM support,for couple of days. But didn't get any useful information.
Could you please suggest and/or tutorial something here?
...
I have a few scripts that send out emails to my users, and for some reason not all users are getting the email. The site is not live yet, so its no big deal yet but I dont understand why. I have set up a few fake accounts, one with my school email, one with hotmail and one with yahoo. When I sign up with my school email I recieve the wel...
Hi,
I am using Kohana V 3.0.3.
I was looking for ACL library and found from http://dev.kohanaphp.com/projects A2 Kohana's ACL module.
Apparently it's found that, it manages Roles,Resources and Rules using config file and authenticate object basis.
I want it to be dynamic, like Resources and Rules should be loaded from database dyn...
My Kohana app runs perfectly on my local machine.
When I deployed my app to a server (and adjust the config files appropriately), I can no longer log into the app.
I've traced through the app login routine on both my local version and the server version and they both agree with each other all the way through until you get to the auth.p...
Hi,
I have serious problem with iframe application. I need to use many external JS libraries and other dynamic stuuf so FMBL application can't be done. When I call require_login() I get applicaition installing dialog when app is not already installed, which is ok. But then after authorization application enters an endless redirect loop ...
Hi,
In Kohana V3 is it possible to return result set as an array() or any method exists?
For example:
$user = DB::select('*')->from("users")->where('username', '=', $username);
If method is there,then it is possible to get password like
echo $user->password;
Is it possible without ORM? Please suggest.
...
Hi,
Could anybody brief about user_token functionality in Auth module? What is a use and how this incorporates in Auth module?
...
Can't for the life of me figure out what I'm doing wrong...
Downloaded Kohaml from http://github.com/transphorm/kohaml
Dropped it into modules/kohaml
# My Bootstrap reference
'kohaml' => MODPATH.'kohaml', // kohaml
Keep getting this error... (snapshot of the error and my modules folder)
http://wellcommentedcode.com/st...
Hello,
I got problem. I'm builing an app with KohanaPHP framework and I got rediretion endless loop.
Here's the code I put in constructor oh my main controller:
if(empty($this->user->real_name)) {
url::redirect('/');
}
Any ideas how to solve that issue?
...
I'm having trouble with the MyClass::function(); style of calling methods and can't figure out why. Here's an example (I'm using Kohana framework btw):
class Test_Core
{
public $var1 = "lots of testing";
public function output()
{
$print_out = $this->var1;
echo $print_out;
}
}
I try to use the following to cal...
I'm trying to run a simple query with $this->db in Kohana, but am running into some syntax issues when I try to use an alias for a table within my query:
$result = $this->db
->select("ci.chapter_id, ci.book_id, ci.chapter_heading, ci.chapter_number")
->from("chapter_info ci")
->where(array("ci.chapter_number" => $chapter, "ci.book...
I'm trying to send a file from within a Kohana model to the browser, but as soon as I add a Content-Length header, the file doesn't start downloading right away.
Now the problem seems to be that Kohana is already outputting buffers. An ob_clean at the begin of the script doesn't help this though. Also adding ob_get_length() to the Conte...
I have a table containing a bunch of records like this:
+-----------+--------+----------+
| extension | fwd_to | type |
+-----------+--------+----------+
| 800 | 11111 | noanswer |
| 800 | 12345 | uncond |
| 800 | 22222 | unavail |
| 800 | 54321 | busy |
| 801 | 123 | uncond |
+---------...
The debate is that I need a PHP Framework/Drupal with the flexibility to add custom features to a potentially large application (web and with an api).
However, with a framework, like Kohana, I see myself tackling and re-inventing the wheel with the simple stuff like account management and cms stuff. Account management and quick data col...
I'm using the "join_table" function with Kohana's ORM to build a query. The following works:
$category = ORM::factory('category')->join_table('product');
But this doesn't:
$category = ORM::factory('category');
$category->join_table('product');
The documentation uses the second as an example, but it returns 0 while the first example...
I'm trying to query a pivot table with Kohana's ORM and I'm wondering if there is a built in function I'm missing. Currently I only have 2 models setup for the tables "categories" and "products". There is a pivot table "categories_products", but I don't need a model for it when inserting data with this:
$product = ORM::factory('product'...