Inserting a Drupal 6 view into a node or template file with PHP is easy. Just use the code below:
<?php
$viewName = 'the_name_of_my_view';
$display_id = 'block_1';
print views_embed_view($viewName, $display_id);
?>
Quick way to increase PHP memory limit in Drupal: add the following line to the file located at /sites/default/settings.php:
ini_set('memory_limit','64M');
Recent comments
1 year 5 weeks ago
1 year 5 weeks ago
1 year 22 weeks ago
1 year 22 weeks ago
1 year 22 weeks ago
1 year 22 weeks ago
2 years 7 weeks ago
2 years 7 weeks ago
2 years 23 weeks ago
2 years 29 weeks ago